This forum is no longer active. Please post your questions to our new community site

Forums WAMPStack

Shared Host IP with Bitnami WAMP Stack and Multiple App Modules.

Subscribe to Shared Host IP with Bitnami WAMP Stack and Multiple App Modules. 2 post(s), 2 voice(s)

 
Avatar palmercomputer 6 post(s)

What changes need to be made in the Bitnami WAMP Stack configuration to allow for multiple App Modules to share a single IP and resolve to the external canonical name?

If I have two modules installed plus the Bitnami WAMP stack, I have three separate host name header canonical names: bitnami.domain.com, wordpress.domain.com and phpbb.domain.com.

Right now, all would display the default Bitnami Web Start Page, and then you would click on the Applications Tab to get to the individual Modules.

I want each host name to resolve directly to the correct module.

 
Avatar carlos Administrator 144 post(s)

You may try something like this for each module.

Adding something similar to this in httpd.conf:

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^wordpress\.mycompany\.com
RewriteCond %{REQUEST_URI} !/wordpress/ 
RewriteRule ^(.*)$ /wordpress$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^phpbb\.mycompany\.com
RewriteCond %{REQUEST_URI} !/phpbb/ 
RewriteRule ^(.*)$ /phpbb$1 [R=301,L]
Forums WAMPStack