httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Melanie Pfefer <melanie_pfe...@yahoo.co.uk>
Subject Re: [users@httpd] alias using Virtual host
Date Tue, 28 Apr 2009 11:20:25 GMT

Hi Andre,

It worked but I need to check this with you:

I have bunches of lines in httpd.conf: several rules, ssl configuration, redirections, authentication
providers….

I tried to put all these between <VirtualHost *:80> and </VirtualHost> to configure
the first (and default) server. But apache refused to start after this because of:

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>


Now what I did is:
ServerRoot
Listen
LoadModule...
User
Group

NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin you@example.com
DocumentRoot "/usr/local/apache2/htdocs"
</VirtualHost>

now the rest of the config:

<Directory />
...

ErrorLog logs/error_log

<Location
....

Then, these lines:

<VirtualHost *:80>
          ServerName alias2
          ProxyPass / http://localhost:8094/
          ProxyPassReverse / http://localhost:8094/
</VirtualHost>


So basically my requirement is met. But I need to check whether the rest of the configuration
is applied to the default server.

Thanks,


--- On Tue, 28/4/09, André Warnier <aw@ice-sa.com> wrote:

> From: André Warnier <aw@ice-sa.com>
> Subject: Re: [users@httpd] alias using Virtual host
> To: users@httpd.apache.org
> Date: Tuesday, 28 April, 2009, 1:22 PM
> Melanie Pfefer wrote:
> > Hi Andre,
> > 
> > Thanks for the clarification.
> > Before proceeding with this, what is the other
> alternative that you mentionned?
> > 
> I suggest that before moving to the second alternative, you
> try this one first, since you already have your two Apache
> instances.
> 
> Then if it works, we can try to bring this all into a
> single Apache instance, and drop the second instance.
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more
> info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message