Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

Listen 80
<VirtualHost *:80>
    DocumentRoot /var/www
    #### Server config for 'old' version of Liferay goes here

Listen 8080
<VirtualHost *:8080>
    DocumentRoot /var/www
    #### Server config for 'old' version of Liferay goes here
share|improve this answer

Your Answer


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.