This is a discussion on Problems with local Redirection (on vhosts) within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, I am having problems getting a local redirect working on my apache installation... I am running a Plone server ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
I am having problems getting a local redirect working on my apache installation... I am running a Plone server on port 8888 and PHP / Apache / MySQL on port 80. I am now trying to get plone to work through apache through redirects but it is not working... The problem being that the vhost is giving 403 messages on any url I try to redirect into. I have been playing around with different combinations of configurations for about a week - with no avail... Does anybody have an idea what I am doing wrong? Apache Version: Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 from an xampp installation Virtual Host Code: NameVirtualHost *:80 #default <VirtualHost *:80> ServerName localhost DocumentRoot "C:/webroot" </VirtualHost> #plone <VirtualHost *:80> ServerName www.myserver.co.uk RewriteEngine On RewriteRule ^/(.*) http://localhost:8888/$1 [P] </VirtualHost> I have mod_proxy and mod_rewrite enabled, and have set default directories to <Directory /> Options All AllowOverride All Order allow,deny Allow from all </Directory> I'm sure it is something really simple but I can't work out the problem whatsoever, any help is appreciated. Best Regards, Mark Starmer |
|
|||
|
Mark Starmer wrote:
> Hello, > > I am having problems getting a local redirect working on my apache > installation... I am running a Plone server on port 8888 and PHP / > Apache / MySQL on port 80. I am now trying to get plone to work > through apache through redirects but it is not working... The problem > being that the vhost is giving 403 messages on any url I try to > redirect into. > > I have been playing around with different combinations of > configurations for about a week - with no avail... Does anybody have > an idea what I am doing wrong? > > Apache Version: > Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.0.2 > from an xampp installation > > Virtual Host Code: > > > NameVirtualHost *:80 > #default > <VirtualHost *:80> > ServerName localhost > DocumentRoot "C:/webroot" > </VirtualHost> > > #plone > <VirtualHost *:80> > ServerName www.myserver.co.uk > RewriteEngine On > RewriteRule ^/(.*) http://localhost:8888/$1 [P] > </VirtualHost> > > I have mod_proxy and mod_rewrite enabled, and have set default > directories to > > <Directory /> > Options All > AllowOverride All > Order allow,deny > Allow from all > </Directory> > > I'm sure it is something really simple but I can't work out the > problem whatsoever, any help is appreciated. > > Best Regards, > > Mark Starmer I could be wrong, but i think the redirect your attempting remains within Apache. It never exposes the request to other servers listening on that port. What you probably need to do it redirect to a page that sends a location header. eg (using PHP) within Rewrite stuff.. redirect to a file called (eg) redirect.php redirect.php contains: <? header("Location: http://localhost:8888"); ?> |