LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2004, 02:01 AM   #1
giuli4n0t
LQ Newbie
 
Registered: Oct 2004
Distribution: RedHat 9
Posts: 1

Rep: Reputation: 0
Unhappy Virtual hosts on a intranet


Hi all.
I am a linux newbie. I installed some time ago a LAMP with a Redhat 9 distro. It works in a intranet of Microsoft PC and terminals.
I really can't make a virtual host work on my server.
I'll try to explain it better:

Servername: iper01 (ip: 192.168.104.45)
Directory /var/www/html

I set up an IP alias on my eth0: 192.168.104.145

Is it possible to set a virtualhost:
mario (ip: 192.168.104.145)
Directory /var/www/html/mario



I tried with webmin with no result.
The only result is when I set the virtualhost ALL of the h_t_t_p://iper01 pointed to /var/www/html/mario

Thank you for your kind answers.
 
Old 10-24-2004, 10:30 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

It is possible but I'm not sure why you would use 2 ip addresses when a single one will do.

Take a look at the virtual host docs and examples here:
http://httpd.apache.org/docs-2.0/vhosts/

Let us know if you run into problems.
 
  


Reply



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
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
virtual hosts, virtual ip's? kuplo Linux - Newbie 3 11-29-2005 08:44 PM
Virtual hosts Help carminejg3 Linux - Newbie 2 12-22-2004 02:47 PM
Apache virtual hosts for intranet and external site tawalker Linux - Software 12 06-25-2004 11:01 AM
Virtual Hosts chris Linux - General 1 11-20-2001 09:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration