shann
06-13-2002, 12:59 PM
This is how my host file look like.
but when I try supernetscripts.com it goes to my
/var/www/html/, it suppose to go to my documentroot which is
/home/shanthy/public_html is any thing I am missing or
any other configuration file that I have to lokk at it.
<VirtualHost 64.231.233.7>
ServerAlias www.supernetscripts.com supernetscripts.com
ServerAdmin root@localhost.com
DocumentRoot /home/shanthy/public_html
ServerName supernetscripts.com
</VirtualHost>
thanks
Shan
allan
06-13-2002, 02:33 PM
This just came up earlier today. Did you restart Apache after making the changes:
[allan@ns1 allan]$ /etc/rc.d/init.d/httpd restart
shann
06-13-2002, 03:02 PM
I have restart httpd and havign same problem, wat it does
is it always go to /var/www/html .
Always going to default sever and not recognizing supernetscripts.com
do I have to do any configuration?
thanks in advance
shan
allan
06-13-2002, 03:14 PM
Does /var/log/httpd have any error messages when you restart Apache?
Also, what does your NameVirtualHost directive have?
The problem might be caused by the fact that you have supernetscripts.com as both a ServerAlias and ServerName. Take it out from the ServerAlias directive.
Here is a sample of what I have:
<VirtualHost xx.xx.xx.xx>
DocumentRoot /home/allan/httpd/
ServerName www.allan.org
ServerAlias allan.org
ErrorLog /var/log/httpd/www.allan.org.error
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/httpd/www.allan.org.access combined
</VirtualHost>
shann
06-13-2002, 03:40 PM
Thank you so muchhhhhhhhh
It works fine
here is another qustions If I wanted to redirect to some
other other wibsite how could I do that?
Thank you for your help all the way.
shan
shann
06-13-2002, 06:37 PM
I have fixed it .
thanks
shan