LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 09-02-2003, 12:02 PM   #1
tr3s
Member
 
Registered: Aug 2003
Location: Philippines
Posts: 35

Rep: Reputation: 15
virtual host for local testing


need some help here...

these are the lines in my httpd.conf:

Listen *.80
NameVirtualHost 192.168.0.183
<VirtualHost 192.168.0.183>
DocumentRoot /home/user1
ServerAdmin admin@mail.com
ServerName user1
</VirtualHost>

note: the IP address supplied above is what i get from "#/sbin/ifconfig -a". i use 127.0.0.1 alternately

but everytime i access http://user1 then it's looking for http://www.user1.com. how can i set i t up so that it will serve my /home/user1 folder? just like http://localhost serves /var/www/html... for local testing only
 
Old 09-02-2003, 12:50 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Put user1 in your hosts file. accessing http://www.user1.com is a browser thing to help you find sites you don't know the suffix of.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Local Host? mac_casey Linux - General 7 03-02-2005 08:04 AM
php site testing on my local LAN duffboygrim Linux - General 2 05-16-2004 02:54 AM
Testing apache virtual hosting within a LAN and no dns mdkelly069 Linux - Networking 2 02-11-2004 04:13 PM
Virtual Host |Drakehash| Linux - Networking 0 07-17-2003 03:02 PM
VIrtual host thep Linux - General 10 08-06-2002 11:28 AM


All times are GMT -5. The time now is 11:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration