Wenatchee Valley College - CTS Discussion Board

You are not logged in. Would you like to login or register?



5/12/2016 8:25 am  #11


Re: Hosting Multiple Websites on a single Apache Server

 

5/12/2016 8:45 am  #12


Re: Hosting Multiple Websites on a single Apache Server

Allen Timpe

# Ensure that Apache listens on port 80

Listen 80
<VirtualHost *:80>
    DocumentRoot "/www/example1"
    ServerName www.example.com
 
    # Other directives here
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot "/www/example2"
    ServerName www.example.org

    # Other directives here
</VirtualHost>

https://httpd.apache.org/docs/current/vhosts/examples.html

 

Board footera

 

Powered by Boardhost. Create a Free Forum