SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: mod_rewrite and Port 81
-
Jun 9, 2002, 17:54 #1
- Join Date
- Jun 2001
- Location
- Oklahoma
- Posts
- 3,392
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
mod_rewrite and Port 81
In order to use mod_rewrite on my server, two conditions have to be met:
- httpd-fat has to be enabled.
- I have to use port 81.
Code:RewriteCond %{HTTP_HOST} !^fully\.qualified\.domain\.name [NC] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{SERVER_PORT} !^81$ RewriteRule ^/(.*) (Link: http://fully.qualified.domain.name:%{SERVER_PORT}/$1)http://fully.qualified.domain.name:%{SERVER_PORT}/$1 [L,R] RewriteCond %{HTTP_HOST} !^fully\.qualified\.domain\.name [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^/(.*) (Link: http://fully.qualified.domain.name/$1)http://fully.qualified.domain.name/$1 [L,R]
-ColinColin Anderson
Ambition is a poor excuse for those without
sense enough to be lazy.
-
Jun 11, 2002, 20:49 #2
- Join Date
- Aug 2001
- Location
- Los Angeles, California
- Posts
- 15
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Your web server has to be configured to listen on port 81 using:
Port 81
or
Listen 10.10.10.10:81
# replace 10.10.10.10 with your service IP
if you are using NameVirtualHosting, you'll want an entry something like the following:
NameVirtualHost 10.10.10.10:81
<VirtualHost 10.10.10.10:81>
ServerName www.myotherserver.com
DocumentRoot /path/to/my/doc81
</VirtualHost>"Decisions should be made in the space of seven breaths."
Karyn Ulriksen
Valkaryn Internet Group
http://www.valkaryn.net
Bookmarks