View previous topic :: View next topic |
Author |
Message |
cenocre -
Joined: 12 Mar 2007 Posts: 47
|
Posted: Tue Mar 10, 2009 9:52 pm Post subject: Changing the port in a URL |
|
|
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 |
|
|
pkSML -
Joined: 29 May 2006 Posts: 952 Location: Michigan, USA
|
Posted: Wed Mar 11, 2009 3:30 am Post subject: |
|
|
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 |
|
|
rrinc -
Joined: 24 Feb 2006 Posts: 725 Location: Arkansas, USA
|
Posted: Sun Mar 22, 2009 5:18 am Post subject: |
|
|
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 |
|
|
|