SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard Aes's Avatar
    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:
    1. httpd-fat has to be enabled.
    2. I have to use port 81.
    Now, the first condition I have set up and is working. However, I'm unsure as to how to use port 81 on my webserver. I was given this piece of code to place in the .htaccess file, but it doesn't appear to be working correctly. If anyone can give me insight, tips, tricks, or explain the coding below, I will be very appreciative.
    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]
    Thanks.

    -Colin
    Colin Anderson
    Ambition is a poor excuse for those without
    sense enough to be lazy.

  2. #2
    SitePoint Member valkaryn's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •