OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[users@httpd] virtual host


This is my first attempt to set up a virtual host with apache24 on a FreeBSD
11.2 machine, and it is not working out so well.

Assuming a site name of example.net, I tried to configure a simple vhost.

<VirtualHost *:80>
    ServerAdmin webmaster@xxxxxxxxxxx
    DocumentRoot "/usr/local/www/testdir"
    ServerName stem.example.net:80
    ServerAlias www.stem.example.net
    ErrorLog "/var/log/stem.error.log"
    CustomLog "/var/log/stem.access.log" common

    AcceptPathInfo On

  <Directory "/usr/local/www/testdir/">
    AllowOverride all
    Order Allow,Deny
    Allow from all
    # For Apache 2.4 add:
    Require all granted
  </Directory>
</VirtualHost>

>From the httpd.conf file:
# Virtual hosts
Include etc/apache24/extra/httpd-vhosts.conf

apachectl -S
VirtualHost configuration:
*:80                   stem.example.net (/usr/local/etc/apache24/extra/httpd-vhosts.conf:24)
*:443                  example.net (/usr/local/etc/apache24/extra/httpd-ssl.conf:121)
ServerRoot: "/usr/local"
Main DocumentRoot: "/usr/local/www/apache24/data"
Main ErrorLog: "/var/log/httpd-error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
PidFile: "/var/run/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www" id=80
Group: name="www" id=80

Obviously, I am dong something wrong, but I have no idea what.

-- 
Carmel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx