LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-03-2002, 06:26 AM   #1
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Rep: Reputation: 15
Question VIrtual host


HI, i got a question.

i saw some web site look like this
http://httpd.apache.org/

is that called virtual host? (httpd)

if yes, how can i set it?
if i want to work it on LAN

<VirtualHost 192.168.1.254>
ServerAdmin webmaster@ultimo
DocumentRoot /home/thep/www/
ServerName host.ultimo
ErrorLog logs/host.thep.ultimo-error_log
TransferLog logs/host.thep.ultimo-access_log
</VirtualHost>


i set ti like that but not work

anyone know how to set?
thank you
 
Old 08-03-2002, 07:24 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
Have you enabled named virtual hosts in the configuration file?

Regards
 
Old 08-03-2002, 08:23 AM   #3
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Original Poster
Rep: Reputation: 15
WHere it is?

can u tell me?
 
Old 08-03-2002, 08:25 AM   #4
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Original Poster
Rep: Reputation: 15
another thing is i can have 2 websites in 1 IP already
do i have to enable it ?
 
Old 08-03-2002, 08:40 AM   #5
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
Try here:

http://www.cfdev.com/apache/virtualhosts.cfm

Regards
 
Old 08-03-2002, 08:42 AM   #6
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
All the documentation that you'll need is here:

http://httpd.apache.org/docs/vhosts/index.html

I recommend that you get the book Professional Apache published by Wrox Press - this is an excellent Apache resource collected into a handy dead tree format - it's certainly easier to decode than the existing online documentation.

naz
 
Old 08-03-2002, 12:47 PM   #7
Jazm
LQ Newbie
 
Registered: Apr 2002
Distribution: RH & SuSE
Posts: 17

Rep: Reputation: 0
I believe you'll at least need to include the proxy module in the apache compile. I don't thing it's there by default. Compile from src and use --enable-mod=proxy during the configure stage. You also might consider --enable-share=max
 
Old 08-03-2002, 08:33 PM   #8
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Original Poster
Rep: Reputation: 15
now i'm using Dynamic DNS, at no-ip.org

i can use virtual host now, but i have to enable wildcard there.
so it's working.

i still got a question that, why it not work in LAN.

for example it set server name is "myserver", when i type "myserver" at browser it display webpage on server.

but when i set vitual host already,

############################### MAIN
NameVirtualHost *

<VirtualHost *>
ServerName ttt.myftp.org
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *>
ServerName ttt.no-ip.org
DocumentRoot /home/thep/www
</VirtualHost>

<VirtualHost *>
ServerName 192.168.1.254
DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *>
ServerName ultimo
DocumentRoot /var/www/html
</VirtualHost>


################################ VIRTUAL
<VirtualHost *>
ServerName www.ttt.no-ip.org
ServerAlias www.ttt.no-ip.org #IT"S WORKING
DocumentRoot /home/thep/www
DirectoryIndex index.cfm index.htm index.html
</VirtualHost>

<VirtualHost *>
ServerName www.tttno-ip.org
ServerAlias virtual.ttt.no-ip.org #IT"S WORKING
DocumentRoot /home/ting/www
DirectoryIndex index.cfm index.htm index.html
</VirtualHost>


<VirtualHost *>
ServerName ultimo
ServerAlias me.ultimo #### NOT WORKING
DocumentRoot /home/me/www
DirectoryIndex index.cfm index.htm index.html
</VirtualHost>


when i use server name from my server, it's not working
do i have to set anything ???


thank you
 
Old 08-03-2002, 09:13 PM   #9
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
Quote:
Originally posted by Jazm
I believe you'll at least need to include the proxy module in the apache compile. I don't thing it's there by default. Compile from src and use --enable-mod=proxy during the configure stage. You also might consider --enable-share=max
IF YOU COMPILE WITH PROXY THEN YOUR SERVER IS A PROXY SERVER


Also remove the .cfm unless you use Macromedia Windows 2000 ColdFusion 5.0
 
Old 08-06-2002, 10:43 AM   #10
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
Quote:
ServerName ultimo
ServerAlias me.ultimo
You actually have to have these hostnames resolvable by the client computer (the computer you're surfing from) - either put entries into the hosts (or hosts.ini) file or set up your dns to resolve these.

naz
 
Old 08-06-2002, 11:28 AM   #11
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
i've been trying to get virtual hosts working for quite awhile. would be very interested if anyone got them to work. :-)
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding virtual host bestofmed Linux - Networking 2 09-28-2005 04:01 PM
virtual host in debian davidhk Debian 3 08-31-2005 03:39 PM
Virtual Host abridge Linux - Software 1 04-13-2005 07:35 AM
virtual host ziggie216 Linux - General 2 12-22-2003 06:38 PM
Virtual Host |Drakehash| Linux - Networking 0 07-17-2003 03:02 PM


All times are GMT -5. The time now is 08:41 PM.

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