Quote:
Originally Posted by this213
you need the following line before your VirtuslHost directives:
NameVirtualHost 192.168.1.69
You may also want (or need) to put a port in there and in the VirtualHost tags:
NameVirtualHost 192.168.1.69:80
Also, you should be including your dynamic virtual hosts after your static ones - the first one read into the server becomes default - so move the Include line to below the VirtualHost container.
|
Crap, I got this error now
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster.
Error 403
www.mctech-computers.com
Sat Mar 25 01:26:36 2006
Apache/2.0.54 (Linux/SUSE)
So here is part of my config file I changed the document root to default but that didnt help.
I know I need some sort of error logs too, but I am getting this done first.
NameVirtualHost 192.168.1.69:80
<VirtualHost 192.168.1.69>
ServerName
www.mctech-computers.com
DocumentRoot srv/www/htdocs
</VirtualHost>
<VirtualHost 192.168.1.69>
ServerName
www.taaxwilaas.com
DocumentRoot srv/www/taaw
</VirtualHost>
Include /etc/apache2/vhosts.d/*.conf
I did have the page up before but just the one site and the second site taaxwilaas came up with the same page as my index so I know its not looking in the right spot for the document root for that site.
Question what is the difference when adjusting the config file and editing the HTTP Server? I have basically duplicated everything in the HTTP Server Using YaSt and then save the changes.
Perhaps I am missing something or am complicationg this? the darn thing will work with one site depending on what index file i use so I know it works but it doesn`t want to see two sites.
Under HTTP Server I have listed the mctech domain as default and the taaxwilaas domain as the second.
Also should I simply put my Dynamic IP in there instead of the static?
any other help with this would be appreciated thanks Mike