How can we install multiple apache servers at different ports in aws ec2 linux instance -


i want install multiple apache servers on ec2 linux servers operating @ different ports , having different file structures in 1 ec2 linux machine. please guide me on how can install multiple apache servers in 1 machine.

you can run single apache server using virtualhost directive.

for example:

<virtualhost *:80>   servername www.example.org   documentroot /www/otherdomain-80 </virtualhost>  <virtualhost *:8080>   servername www.example2.org   documentroot /www/otherdomain-8080 </virtualhost> 

will listen both port 80 , 8080 running same apache server. running 2 apache instances on same server possible it's kinda messy. keep in mind port > 1024 protected linux, able bind ports 443 , 80 apache, otherwise has ports 1025 , above.

more information here:

http://httpd.apache.org/docs/2.2/vhosts/examples.html


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -