Forum Moderators: phranque
I have to virtual hosts (domain and subdomain):
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName example.ro
DocumentRoot /home/bl3/public_html
<Directory />
Options FollowSymLinks
# AllowOverride None
</Directory>
<Directory /home/bl3/public_html>
Options Indexes FollowSymLinks MultiViews
# AllowOverride None
Order allow,deny
allow from all
#DirectoryIndex index.php index.aspx index.html
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
<Directory "/home/bl3/public_html/cgi-bin">
# AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.itmc.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
and
<VirtualHost *>
ServerAdmin webmaster@localhost
ServerName us.example.ro
DocumentRoot /home/bl3/public_html/us
<Directory />
Options FollowSymLinks
# AllowOverride None
</Directory>
<Directory /home/bl3/public_html/us>
Options Indexes FollowSymLinks MultiViews
# AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.php index.aspx index.html
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
<Directory "/home/bl3/public_html/us/cgi-bin">
# AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/error.itmc.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
</VirtualHost>
The second one does not work. Can you please tell me why?
[edited by: jdMorgan at 10:47 pm (utc) on May 20, 2008]
[edit reason] examplified [/edit]