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
Share on other sites

[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.
Link to comment
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
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.