Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Two sites from one Apache

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  apache-ssl won't start  
Author Message
nowhere1

External


Since: May 11, 2004
Posts: 5



(Msg. 1) Posted: Tue May 11, 2004 9:13 pm
Post subject: Two sites from one Apache
Archived from groups: alt>apache>configuration (more info?)

I'm sure this is a real beginner's question.

Configuration:
Local (Development of Site1 and Site2): Win 2000; Apache 2.0.48
Live 1 (Site1): Unix; Apache 1.3.29; SSI
Live 2 (Site2): whatever Rootsweb use?; SSI

Background:
I have been running a development version of Site 1 for some time and have
recently started development of Site 2. Both sites serve fine over a
2-computer Ethernet LAN.

The Problem:
As of earlier today, in Site 2 I am finding it increasingly necessary to use
local-absolute references starting at root, i.e. of the form
"/dir/page.htm", however "/" goes all the way up to the Apache root, rather
than the site root. I can overcome this in the development environment with
references such as "/site1/dir/page.htm" but these need to be edited back to
"/dir/page.htm" to work properly on the live versions. As you can imagine
this is a complete pain, which I could do without in the long term.

Attempts thus far:
I have looked in the Apache documentation and tinkered with VirtualHosts in
hppd.conf but know that I am doing no better than stabbing in the dark.

Question:
How do I configure my development Apache such that Site 1 and Site 2 each
has its own "/".

Assistance will be gratefully appreciated.
Thanks in advance
Adrian

 >> Stay informed about: Two sites from one Apache 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Wed May 12, 2004 9:33 am
Post subject: Re: Two sites from one Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Herbert Pocket <nowhere DeleteThis @thingy.com> wrote:
 > local-absolute references starting at root, i.e. of the form
 > "/dir/page.htm"

There is no such things as 'local-absolute' they are RELATIVE or they
aren't...

, however "/" goes all the way up to the Apache root, rather
 > than the site root.

It sounds like your Apache has lost his VHost reference.

 > How do I configure my development Apache such that Site 1 and Site 2 each
 > has its own "/".

Using VHosts... inanutshell:

NameVirtualHosts *

<VirtualHost *>
  ServerName thefirstdomain
  DocumentRoot /wherever/
  <Directory "/wherevere">
   Options ...
   Order allow,deny
   Allow from all
  </Directory>
</VirtualHost>

<VirtualHost *>
  ServerName theseconddomain
  DocumentRoot /wherever2/
  <Directory "/wherevere2">
   Options ...
   Order allow,deny
   Allow from all
  </Directory>
</VirtualHost>

See the documentation, and this time try to understand what it says.
See the examples in your httpd.conf

Davide

--
| The problem with engineers is that they tend to cheat in order to get
| results.
|
|<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Two sites from one Apache 
Back to top
Login to vote
nowhere1

External


Since: May 11, 2004
Posts: 5



(Msg. 3) Posted: Wed May 12, 2004 11:57 am
Post subject: Re: Two sites from one Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Davide,
Thank you for your reply.

Do I understand correctly that I'm on the right track with VHosts?

If so, then I'm encouraged that I actually understood _something_ in the
Apache documentation. At the risk of shaking your devout belief therein, the
problem is not understanding per se, but not knowing whether one is reading
the right bit!

Herbert
Software Documentation Consultant



"Davide Bianchi" <davideyeahsure DeleteThis @onlyforfun.net> wrote in message
news:2gdupuF189r4U1@uni-berlin.de...
 > Herbert Pocket <nowhere DeleteThis @thingy.com> wrote:
  > > local-absolute references starting at root, i.e. of the form
  > > "/dir/page.htm"
 >
 > There is no such things as 'local-absolute' they are RELATIVE or they
 > aren't...
 >
 > , however "/" goes all the way up to the Apache root, rather
  > > than the site root.
 >
 > It sounds like your Apache has lost his VHost reference.
 >
  > > How do I configure my development Apache such that Site 1 and Site 2
each
  > > has its own "/".
 >
 > Using VHosts... inanutshell:
 >
 > NameVirtualHosts *
 >
 > <VirtualHost *>
 > ServerName thefirstdomain
 > DocumentRoot /wherever/
 > <Directory "/wherevere">
 > Options ...
 > Order allow,deny
 > Allow from all
 > </Directory>
 > </VirtualHost>
 >
 > <VirtualHost *>
 > ServerName theseconddomain
 > DocumentRoot /wherever2/
 > <Directory "/wherevere2">
 > Options ...
 > Order allow,deny
 > Allow from all
 > </Directory>
 > </VirtualHost>
 >
 > See the documentation, and this time try to understand what it says.
 > See the examples in your httpd.conf
 >
 > Davide
 >
 > --
 > | The problem with engineers is that they tend to cheat in order to get
 > | results.
 > |
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Two sites from one Apache 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 4) Posted: Wed May 12, 2004 11:57 am
Post subject: Re: Two sites from one Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Herbert Pocket <nowhere.TakeThisOut@thingy.com> wrote:
 > Do I understand correctly that I'm on the right track with VHosts?

If I understood correctly your problem, yes.

Davide

--
| CChheecckk yyoouurr dduupplleexx sswwiittcchh..
|
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Two sites from one Apache 
Back to top
Login to vote
nowhere1

External


Since: May 11, 2004
Posts: 5



(Msg. 5) Posted: Wed May 12, 2004 6:29 pm
Post subject: Re: Two sites from one Apache [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Davide,
You're a gent.
Herb


"Davide Bianchi" <davideyeahsure.TakeThisOut@onlyforfun.net> wrote in message
news:2ge5c2F1lvkiU1@uni-berlin.de...
 > Herbert Pocket <nowhere.TakeThisOut@thingy.com> wrote:
  > > Do I understand correctly that I'm on the right track with VHosts?
 >
 > If I understood correctly your problem, yes.
 >
 > Davide
 >
 > --
 > | CChheecckk yyoouurr dduupplleexx sswwiittcchh..
 > |
 > |
 > |<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Two sites from one Apache 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Configuring Apache for two SSL sites - I'm currently trying to set up two different websites for my company and both will be using SSL. I'm using Websphere 5.0 and IHS server. I set up the first site using the default port 443 and it works just fine. I'm having trouble, though with the..

2 domain names to 2 different sites? - Hi Can I have 2 different domain names pointing to 2 different sites with Apache? EG: www.mydomain.com (IP: xxx.xxx.xxx.25) (which is currently set up and working) in /home/firstsite/ www.a-new-domain.com (IP: xxx.xxx.xxx.26) in /home/new-domain...

Where to get info for operating larger sites? - Hi there, I have a internet community running which is getting pretty popular. The problem is, that my knowledge ends at certain points and I cant find any info on the net on that. For example what to do with all the apache logdata (200MB each day).....

Host multiple sites without port number showing? - Hello, I have followed the virtual hosts documentation (I think) to the letter, but my second website on port 81 always directs to the original site at port 80, unless I put the port number in its URL. The second site's URL is (mysite).dyndns.org--I'm....

Apache & IIS - Hi all Is it possible to run Apache and IIS on the same Windows 2000 PC, or should I uninstall IIS before installing Apache. Thanks
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]