xadamz23 Posted September 6, 2006 Share Posted September 6, 2006 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:8222I have scoured the internet and tried changing the httpd.conf file, but the redirection never works.What can I do to get the redirection? Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/ Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 I think you might need to use Mod Rewright Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87168 Share on other sites More sharing options...
xadamz23 Posted September 6, 2006 Author Share Posted September 6, 2006 I have tried that, but I am not sure if I am using the correct syntax.In my httpd.conf file:RewriteEngine onRewriteRule (I cant remember the rule I used)Do you know what I would need given the URLs in my first post? Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87193 Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 Have you tried making a vhost? Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87402 Share on other sites More sharing options...
xadamz23 Posted September 6, 2006 Author Share Posted September 6, 2006 I havent tried using a vhost. I am not familier with that. Unless that is the same thing as VirtualHost? Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87408 Share on other sites More sharing options...
oldmanice Posted September 6, 2006 Share Posted September 6, 2006 Yes it is Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87417 Share on other sites More sharing options...
R_P Posted September 6, 2006 Share Posted September 6, 2006 [code]RewriteEngine onRewriteRule ^/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 Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87422 Share on other sites More sharing options...
xadamz23 Posted September 6, 2006 Author Share Posted September 6, 2006 [quote author=R_P link=topic=107114.msg429551#msg429551 date=1157580035][code]RewriteEngine onRewriteRule ^/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 = vm1I want URL "http://vm1" redirected to URL "http://vm1:8222 Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87425 Share on other sites More sharing options...
R_P Posted September 6, 2006 Share Posted September 6, 2006 to enable mod_rewrite, you need to uncomment: #LoadModule rewrite_module modules/mod_rewrite.soin 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. Quote Link to comment https://forums.phpfreaks.com/topic/19910-redirect-port-80-to-port-8222/#findComment-87438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.