Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am a Java developer who was given a task of running Liferay Portal on a remote server (I do have an IP and root access). The server already has one instance of old Liferay and Apache web server. I would like to setup additional Liferay Portals and access them through ip:port running on that server.

How can I run multiple sites on different ports using Apache?

share|improve this question
add comment

1 Answer 1

You'll need to read up on VirtualHosts - roughly you'd have something like the following in your httpd.conf:

Listen 80
<VirtualHost *:80>
    ServerName liferay-old.example.com
    DocumentRoot /var/www
    #### Server config for 'old' version of Liferay goes here
</VirtualHost>

Listen 8080
<VirtualHost *:8080>
    Server liferay-new.example.com
    DocumentRoot /var/www
    #### Server config for 'old' version of Liferay goes here
</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.