Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have my domain registered and running. I have installed lifray which is running on tomcat 7, my site url is iloveliferay.com:8080 and I want this to be at themes.iloveliferay.com, which file I need to change to make this possible?

I have VM cloude hosting and I have root access.

share|improve this question
    
What you need to do is set apache to act as a proxy for your main domain and forward requests locally to the tomcat server. It may be better to ask this question on serverfault. –  Dunhamzzz Jun 22 '12 at 8:31
add comment

2 Answers

You may want to look at the info provided here :

http://www.servletworld.com/tomcat/howto-change-tomcat-port.html

(Essential content inserted here as that link is down in Feb 2013.) Look for the section in server.xml like this and change the port to 80.

<connector port="8080" protocol="HTTP/1.1" 
                  connectiontimeout="20000" 
                  redirectport="8443"/>  
share|improve this answer
add comment

Edit on http.conf

<VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName mail.domain.com
    RedirectPermanent / http://domain.com:port 
</VirtualHost>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.