Jump to content

Redirect port 80 to port 8222


xadamz23

Recommended Posts

Hello,

I am running VMware Server and have installed the Management Interface.  By default the interface is accessed on port 8222.  However, I dont want my users to have to specify a port in their web browser.

I need the following redirection to happen:

http://vm1 ----> http://vm1:8222

I have scoured the internet and tried changing the httpd.conf file, but the redirection never works.

What can I do to get the redirection?
Link to comment
https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/
Share on other sites

[quote author=R_P link=topic=107114.msg429551#msg429551 date=1157580035]
[code]

RewriteEngine on
RewriteRule ^/vm1(.*) http://myserver:8222$1

[/code]

Should look something like that if you have mod_rewrite enabled. Another (quick and dirty) solution would be to create an index page in */vm1 with an actual javascript or meta redirect.

Good luck.
[/quote]


Didnt work, I might not have mod_rewrite enabled.  Just to clarify:

Hostname = vm1
I want URL "http://vm1" redirected to URL "http://vm1:8222
to enable mod_rewrite, you need to uncomment:

#LoadModule rewrite_module modules/mod_rewrite.so

in apache httpd.config and then restart apache if you are on your own machine. to see if it is already running, you can take a gander at phpinfo() and look for loaded apache modules.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.