Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old September 25th, 2000, 05:58 PM
Jonny L Jonny L is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: UK
Posts: 14 Jonny L User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Jonny L
hi

i have installed RedHat Linux 6.2 with Apache 1.3.12

what i need to be able to do is uploaded all my sites to the new server in virtual hosts and be able to access them via IE.

is it possible to use www.sitename.com

or do i have to use IP address

i have been through the Apache manual on virtual hosts, but still with no luck

thanks in advance :]

Jonny

Reply With Quote
  #2  
Old September 25th, 2000, 10:03 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>be able to do is uploaded all my sites to the new server in virtual hosts

What do you mean? Are you trying to migrate your existing sites from elsewhere to your local web server and keeping the same domain names?

Reply With Quote
  #3  
Old September 27th, 2000, 04:29 PM
Jonny L Jonny L is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: UK
Posts: 14 Jonny L User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Jonny L
i want to be able to set all my sites up on my local server.. and access them via a links page

when i setup the first virtual host it all works fine using http://112.112.112.11/site/www to access it, as soon as i set up the next site they dont work

it seems to take the first site as the default

:[

Reply With Quote
  #4  
Old September 27th, 2000, 08:43 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>i want to be able to set all my sites up on my local server

So are you using Name-based vhost?

>>the first virtual host it all works fine using http://112.112.112.11/site/www

There was a configure problem obviously.

Show us all your <VirtualHost> blocks.

Reply With Quote
  #5  
Old September 28th, 2000, 01:56 PM
Jonny L Jonny L is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: UK
Posts: 14 Jonny L User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Jonny L
i must stress that this linux box is kept offline for testing purposes.. i just want to be able to access various sites to work on them offline.

NameVirtualHost 112.112.112.3

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName fishomania
VirtualDocumentRoot /home/sites/fishomania
ScriptAlias /cgi/bin/ /home/sites/fishomania/cgi-bin
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName elitewebdesigns
VirtualDocumentRoot /home/sites/%0
ScriptAlias /cgi/bin/ /home/sites/elitewebdesigns/cgi-bin
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName up-loaded
DocumentRoot /home/sites/up-loaded
ScriptAlias /cgi/bin/ /home/sites/up-loaded/cgi-bin
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName dolphinmania
DocumentRoot /home/sites/dolphinmania
ScriptAlias /cgi/bin/ /home/sites/dolphinmania/cgi-bin
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName petersstationery
DocumentRoot /home/sites/petersstationery
ScriptAlias /cgi/bin/ /home/sites/petersstationery/cgi-bin
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName snowblind
DocumentRoot /home/sites/snowblind
ScriptAlias /cgi/bin/ /home/sites/snowblind/cgi-bin
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

<VirtualHost 112.112.112.3>
ServerAdmin admin@localhost
ServerName younghosting
DocumentRoot /home/sites/younghosting
Options ExecCgi Includes IncludesNOEXEC Indexes
</VirtualHost>

Reply With Quote
  #6  
Old September 28th, 2000, 04:05 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>NameVirtualHost 112.112.112.3

So don't use IP address to access your sites.

>>i have been through the Apache manual on virtual hosts, but still with no luck

Unfortunately, this link -> "Multiple local hostnames ??" http://www.devshed.com/Talk/Forums/Forum15/HTML/000142.html has been removed so I guess I will repost it using a quick and dirty way.

Edit /etc/hosts file:
112.112.112.3 www.sitename.com fishomania elitewebdesigns up-loaded dolphinmania petersstationery...

Now try to use http://fishomania to access to your sites.

Reply With Quote
  #7  
Old September 28th, 2000, 05:17 PM
Jonny L Jonny L is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Location: UK
Posts: 14 Jonny L User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Jonny L
cheers for the help

but i get a "page cannot be displayed" when i try and access any site through http://site/

i am probably setting up apache completely wrong :]

ta anywayz

Reply With Quote
  #8  
Old September 28th, 2000, 10:07 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
You can't use IE. You need to access to your vhost sites from within your redhat box.

Reply With Quote
  #9  
Old September 29th, 2000, 04:11 AM
edekock edekock is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2000
Posts: 1 edekock User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try setting the Virtual hosts like below, each with it's own name in the VirtualHost Tag.
On your web browser machine, make sure it will resolve each name to the same IP address.
IE Put them all in your hosts file or configure your DNS server accordingly.

You must now access the sites by name, and apache will resolve them appropriately
IE http://www.site1

Hope this helps.

<VirtualHost 112.112.112.3 www.site1>
ServerAdmin admin@localhost
</VirtualHost>

<VirtualHost 112.112.112.3 www.site2>
ServerAdmin admin@localhost
</VirtualHost>

<VirtualHost 112.112.112.3 www.site3>
ServerAdmin admin@localhost
</VirtualHost>


------------------
Euan de Kock
Gekko Services (Pvt) Ltd

Reply With Quote
  #10  
Old October 2nd, 2000, 04:48 AM
qwerty qwerty is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 2 qwerty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Don't forget that this kind of name-based virtual hosting depends on HTTP host headers, which are a feature of HTTP 1.1. So make sure your browser's "use HTTP1.1" option is turned on, if it has one.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Help with Virtual hosts on apache


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway