FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free 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.
Related topics
How do i set up a secure socket layer SSL?
Keep domain name in URL space
Live Web Server Status
apache httpd.conf setup for subdomains
Apache
Best way for one IP, many domains, https for all domains?
problem with .eu.org domain
Virtual Host in Apache
How nameserver works --- important
Python virtualenv
Is there new Server Status Gif
DNS Nameserver 1 and Nameserver 2
Can I add tasks to Windows Scheduled Tasks - Using PHP?
Massive re-thinking of the whole premise of what Frihost is
Reply to topic    Frihost Forum Index -> Computers -> Computer Problems and Support

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