Problems with local Redirection (on vhosts)

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-02-2004
Mark Starmer
 
Posts: n/a
Default Problems with local Redirection (on vhosts)

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
  #2 (permalink)  
Old 11-02-2004
2metre
 
Posts: n/a
Default Re: Problems with local Redirection (on vhosts)

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");
?>




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:40 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0