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?
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?
