Jump to content

Archived

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

xadamz23

Redirect port 80 to port 8222

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?

Share this post


Link to post
Share on other sites
I have tried that, but I am not sure if I am using the correct syntax.

In my httpd.conf file:

RewriteEngine on
RewriteRule (I cant remember the rule I used)

Do you know what I would need given the URLs in my first post?

Share this post


Link to post
Share on other sites
I havent tried using a vhost.  I am not familier with that.  Unless that is the same thing as VirtualHost?

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.