Page 1 of 1

Alias with an alternate port

Posted: Tue Jan 19, 2010 8:16 am
by ho0k3r
Is there a way to setup an alias with an alternate port? I installed Vmware Server on my HDA and would like to get to it by using http://vmware.

Re: Alias with an alternate port

Posted: Tue Jan 19, 2010 10:09 am
by ho0k3r
As usual after I post it hits me as to how to solve my issue.

Maybe someone has a better way but this is how I did it.

First I created a webapp name vmware and left everything standard.

Then I modified the vmware file in /etc/httpd/conf.d/1012-Vmware.conf so it contains the following.

Code: Select all

<VirtualHost *:80> ServerName Vmware ServerAlias Vmware.ho0k3r.com redirect permanent / https://vmware:8333 DocumentRoot /usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/webapps/ui <Directory "/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/webapps/ui"> Options Indexes FollowSymLinks +ExecCGI AddHandler fcgid-script .fcg AllowOverride AuthConfig Order allow,deny Allow from all </Directory> ErrorLog /var/hda/web-apps/Vmware/logs/error_log CustomLog /var/hda/web-apps/Vmware/logs/access_log combined env=!dontlog </VirtualHost>
Now I can type http://vmware and it functions properly.

Note:
You have to restart the httpd service for the changes to take affect.

service httpd restart

Re: Alias with an alternate port

Posted: Tue Jan 19, 2010 10:15 am
by rampage537
did you go to the network tab in the dashboard and try making a network alias for it?

Re: Alias with an alternate port

Posted: Tue Jan 19, 2010 12:56 pm
by ho0k3r
did you go to the network tab in the dashboard and try making a network alias for it?
I did but it doesn't allow for an alternate port.