2 virtual domains: one on port 80 one on port 8080, how?

Posted by Simone on Server Fault See other posts from Server Fault or by Simone
Published on 2012-11-18T14:36:22Z Indexed on 2012/11/18 17:04 UTC
Read the original article Hit count: 173

Filed under:
|
|
|
|

I've been struggling with this, basically what I want is this:

A virtual domain to run on the 80 another virtual domain to run FROM 80 TO 8080

what I've done so far is trying different combinations with apache, but all i got is having all the virtual domains pointing to port 80 this is my conf:

<VirtualHost domain1.com:80>
DocumentRoot /var/www/domain1
<Directory "/var/www/domain1">
allow from all
Options +Indexes
</Directory>
ServerName domain1.com
</VirtualHost>

<VirtualHost server.domain2.com:80>
DocumentRoot /var/www
<Directory "/var/www">
allow from all
Options +Indexes
</Directory>

    ServerName server.domain2.com
    ServerAlias www.server.domain2.com
    ProxyPass / http://server.domain2.com:8080/

       </VirtualHost>

suggestions? :(

© Server Fault or respective owner

Related posts about apache2

Related posts about domain