Forum Moderators: phranque

Message Too Old, No Replies

Changing default port number in .htaccess

Listen nnn

         

anjanesh

12:30 pm on Mar 9, 2007 (gmt 0)

10+ Year Member



Hi

Is there anyway I can change the post from 80 to say 801? So that it can be accessedas [localhost:801...]

I tried doing this in .htaccess


Listen 801

but returned 501

Is this possible?

Thanks

jdMorgan

4:16 pm on Mar 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No. For security reasons, IP addresses and ports can only be changed at the server configuration level.

For more details, note the "context" description shown for each Apache directive in the documentation. If the directive can be used in a per-directory .htaccess context, it will say so.

Jim