Changing the port in a URL

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
cenocre
-


Joined: 12 Mar 2007
Posts: 47

PostPosted: Tue Mar 10, 2009 9:52 pm    Post subject: Changing the port in a URL Reply with quote

My clients log in to their hit reports at: http://reports.domain.com:8000

I would like for them to be able to leave off the :8000. A listening error occurs if I set the port to 8000 as the reporting software, Summary Pro is already listening on that port.

So it seems that a URL ReWrite is the answer. No luck so far.

When I have tried to do a rewrite:
Quote:

^/reports.domain.com(.*)$
Perform an internal redirection
/reports.domain.com:8000$1


an "error 403 - forbidden" is returned.

Any suggestions?
Back to top View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 882
Location: Michigan, USA

PostPosted: Wed Mar 11, 2009 3:30 am    Post subject: Reply with quote

Two possibilities:

1. Have Abyss serve up an HTML page with an iframe to the server on port 8000.

2. Redirect the browser.

Code:
URL Rewrite rule
regular expression: ^/(.*)
case sensitive: unchecked

condition 1:
 variable: HTTP Header: Host (HTTP_HOST)
 operator: matches with
 regex: ^reports.domain.com$
 case sensitive: unchecked
apply to subrequests: checked

perform an external redirection
redirect to: http://reports.domain.com:8000/$1
append query string: checked
escape redirection location: checked
status code: 302 or 301

_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Sun Mar 22, 2009 5:18 am    Post subject: Reply with quote

I think the reason what you wanted to do doesn't make sense in this case, is that a different port isn't really an internal redirection. That other port is another host. As far as you're concerned, a host is a separate server (or a thread in Abyss I guess), which isn't "internal" as Aprelium interprets it.

Do an external redirection like pkSML says.
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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


Powered by phpBB phpBB Group