FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
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.
Related topics

Virtual Host in Apache
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
How nameserver works --- important
MS Virtual Server 2005 Now Free - And Supports Linux!

Digital Composers: Favorite Virtual Instrument?
Installing imagemagic + sox to host !!! Help me!!!
Very nice host
Top-10 Rejected FriHost Applications Ever
Security of this host? (and phpbb forum)
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.