derrickyoung Posted July 2, 2007 Share Posted July 2, 2007 Trying to get Virtual Servers working bassed on Name. Have done this in the past on Windows systems and using Sambar which uses a vhot file with similar syntax. no matter which domain I go to I get the general web site information My syntax is as follows NameVirtualHost *:80 <VirtualHost www.orilliawomenslacrosse.com> DocumentRoot /var/www/lax/html/ serverName www.orilliawomenslacrosse.com ServerSignature email DirectoryIndex index.php index.html index.htm index.shtml </VirtualHost> # Virtual host Virtual Host 1 <VirtualHost www.thehdog.com> DocumentRoot /var/www/html/hdog ServerName www.thehdog.com ServerSignature email DirectoryIndex index.html index.htm index.shtml </VirtualHost> <Directory "/"> Options FollowSymLinks AllowOverride None </Directory> <Directory "/var/www/html"> Options Indexes Includes FollowSymLinks AllowOverride None Allow from all Order allow,deny </Directory> <Directory "/var/www/icons"> Options Indexes MultiViews AllowOverride None Allow from all Order allow,deny </Directory> <Directory "/var/www/cgi-bin"> Options ExecCGI AllowOverride None Allow from all Order allow,deny </Directory> <Directory> "/var/www/lax/html"> Options Indexes Includes FollowSymLinks AllowOverride None Allow from all Order allow,deny </Directory> <Directory "DocumentRoot /var/www/html/hdog"> Options Indexes Includes FollowSymLinks AllowOverride None Allow from all Order allow,deny </Directory> Quote Link to comment Share on other sites More sharing options...
steviewdr Posted July 3, 2007 Share Posted July 3, 2007 It should be like this: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot /var/www/lax/html/ ServerName www.orilliawomenslacrosse.com ServerSignature On DirectoryIndex index.php index.html index.htm index.shtml </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/html/hdog ServerName www.thehdog.com ServerSignature On DirectoryIndex index.html index.htm index.shtml </VirtualHost> Also note: you placed <Directory /> outside of VirtualHost's. These <Directory> code should be contained within the relevant <VirtualHost> tags. -steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.