I recently rebuilt my server and put Mandrake 8.1 on it.
Wanting to use the latest Apache sw i downloaded the 2.0.8 beta version of
the Web Server, I also have the 1.3.22 version available with the same
problems.
When I try to re-establish the NamedVirtual Hosting I was doing on another
server I get access denied on the root directories of the different domains.
When I added a CNAME entry in DNS for the first domain (siteone.com) it
suddenly works?
for instance;
ns1 IN A XX.XX.XX.XX
www IN CNAME NS1
But if I try to do the same thing with the second domain it still doesn't
work.
Before on the other server previous version, I wasn't using the CNAME
entries in DNS, just mulitple A record entries.
Is the CNAME entry required now?
For the second domain or any additional domains to work, do I have to also
add multiple ServerName entries in the Httpd.conf outside of the VirtualHost
directives.? That seems to be the only difference.
Any advice would be appreciated, I seemed to have been all through the FAQ's
and Documents on the Apache.org sheet but all of the information i seem to
gleem doesn't work.
Any help would be appreciated.
In the Main Section of the config file I have the server name specified as;
Listen 80
ServerName ns1.siteone.com
For directory permissions I have;
The owner of the directories are nobody.nobody.
<Directory "/mnt/www/pub/siteone">
Order allow,deny
Allow from any
</Directory>\
<Directory "/mnt/www/pub/sitetwo">
Order allow,deny
Allow from any
</Directory>
<Directory "/mnt/www/pub/siteone">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
Addhandler type-map var
DirectoryIndex index.html index.html.var
</Directory>
<Directory "/mnt/www/pub/sitetwo">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
Addhandler type-map var
DirectoryIndex index.html index.html.var
</Directory>
The Virtual hosting area of the Httpd.conf looks like this;
NameVirtualHost XX.XX.XX.XX
<VirtualHost XX.XX.XX.XX>
ServerAdmin me@host.com
DocumentRoot /mnt/www/pub/sitetwo
Servername www.sitetwo.com
ErrorLog logs/sitetwo-error.log
CustomLog logs/sitetwo-access.log common
</VirtualHost>
<VirtualHost XX.XX.XX.XX>
ServerAdmin me@host.com
DocumentRoot /mnt/www/pub/siteone
ServerName www.siteone.com
ErrorLog logs/siteone-error.log
CustomLog logs/siteone-access.log common
</VirtualHost>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Wanting to use the latest Apache sw i downloaded the 2.0.8 beta version of
the Web Server, I also have the 1.3.22 version available with the same
problems.
When I try to re-establish the NamedVirtual Hosting I was doing on another
server I get access denied on the root directories of the different domains.
When I added a CNAME entry in DNS for the first domain (siteone.com) it
suddenly works?
for instance;
ns1 IN A XX.XX.XX.XX
www IN CNAME NS1
But if I try to do the same thing with the second domain it still doesn't
work.
Before on the other server previous version, I wasn't using the CNAME
entries in DNS, just mulitple A record entries.
Is the CNAME entry required now?
For the second domain or any additional domains to work, do I have to also
add multiple ServerName entries in the Httpd.conf outside of the VirtualHost
directives.? That seems to be the only difference.
Any advice would be appreciated, I seemed to have been all through the FAQ's
and Documents on the Apache.org sheet but all of the information i seem to
gleem doesn't work.
Any help would be appreciated.
In the Main Section of the config file I have the server name specified as;
Listen 80
ServerName ns1.siteone.com
For directory permissions I have;
The owner of the directories are nobody.nobody.
<Directory "/mnt/www/pub/siteone">
Order allow,deny
Allow from any
</Directory>\
<Directory "/mnt/www/pub/sitetwo">
Order allow,deny
Allow from any
</Directory>
<Directory "/mnt/www/pub/siteone">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
Addhandler type-map var
DirectoryIndex index.html index.html.var
</Directory>
<Directory "/mnt/www/pub/sitetwo">
Options Indexes FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all
Addhandler type-map var
DirectoryIndex index.html index.html.var
</Directory>
The Virtual hosting area of the Httpd.conf looks like this;
NameVirtualHost XX.XX.XX.XX
<VirtualHost XX.XX.XX.XX>
ServerAdmin me@host.com
DocumentRoot /mnt/www/pub/sitetwo
Servername www.sitetwo.com
ErrorLog logs/sitetwo-error.log
CustomLog logs/sitetwo-access.log common
</VirtualHost>
<VirtualHost XX.XX.XX.XX>
ServerAdmin me@host.com
DocumentRoot /mnt/www/pub/siteone
ServerName www.siteone.com
ErrorLog logs/siteone-error.log
CustomLog logs/siteone-access.log common
</VirtualHost>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org