FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Aapache Virtual host

 


aciminsk
Have installed Apache 2..2.0 + PHP 5.1.2 + MySQL 5.0.9 bundle on FreeBSD 6.0.
With minor changes in httpd.config and php.ini system works if I give IP address as URL. I have made appropriate records in DNS and now I can access the site using URL. Need to setup a virtual host on the same server. Have made following configuration changes:

1. In httpd.config uncommented the following line

Include conf/extra/httpd-vhosts.conf

2. In httpd-vhosts.conf put the following:

NameVirtualHost 192.x.x.x:80
<VirtualHost 192.x.x.x:80>
ServerAdmin webmaster@xxx.com
DocumentRoot /htdocs/test.xxx.xxx.com
ServerName test.xxx.xxx.com
ServerAlias www.test.xxx.xxx.com
ErrorLog logs/test.xxx.xxx.com-error_log
CustomLog logs/test.xxx.xxx.com-access_log common

</VirtualHost>

Got "test.xxx.xxx.com could not be found" error when trying to access http://test.xxx.xxx.com

What and where did I miss?
SoftStag
First of all, make sure that your DNS is correct. Try pinging the domain name, to make sure it resolves to the correct IP. It can take a while for DNS changes to filter through the system.
aciminsk
Thank you. Have forgotten, that besides changing httpd.config and httpd-vhosts.config one has to have appropriate record on DNS server. Works now.

P.S. Appropriate record in hosts file might do for testing also.
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.