2

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?

0

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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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