Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Virtual Hosts
- #
- # Required modules: mod_log_config
- # If you want to maintain multiple domains/hostnames on your
- # machine you can setup VirtualHost containers for them. Most configurations
- # use only name-based virtual hosts so the server doesn't need to worry about
- # IP addresses. This is indicated by the asterisks in the directives below.
- #
- # Please see the documentation at
- # <URL:http://httpd.apache.org/docs/2.4/vhosts/>
- # for further details before you try to setup virtual hosts.
- #
- # You may use the command line option '-S' to verify your virtual host
- # configuration.
- <VirtualHost *:80>
- ServerName localhost
- DocumentRoot "C:/php_folder/php"
- </VirtualHost>
- #
- # Use name-based virtual hosting.
- #
- ##NameVirtualHost *:80
- #
- # VirtualHost example:
- # Almost any Apache directive may go into a VirtualHost container.
- # The first VirtualHost section is used for all requests that do not
- # match a ##ServerName or ##ServerAlias in any <VirtualHost> block.
- #
- ##<VirtualHost *:80>
- ##ServerAdmin webmaster@dummy-host.example.com
- ##DocumentRoot "C:/app/htdocs/dummy-host.example.com"
- ##ServerName dummy-host.example.com
- ##ServerAlias www.dummy-host.example.com
- ##ErrorLog "logs/dummy-host.example.com-error.log"
- ##CustomLog "logs/dummy-host.example.com-access.log" common
- ##</VirtualHost>
- ##<VirtualHost *:80>
- ##ServerAdmin webmaster@dummy-host2.example.com
- ##DocumentRoot "C:/app/htdocs/dummy-host2.example.com"
- ##ServerName dummy-host2.example.com
- ##ErrorLog "logs/dummy-host2.example.com-error.log"
- ##CustomLog "logs/dummy-host2.example.com-access.log" common
- ##</VirtualHost>
- ####################################
- #### site1.local VirtualHost ####
- <VirtualHost site1.local:80>
- <Directory "C:/tmp/site001">
- Require all granted
- Options FollowSymLinks Indexes
- AllowOverride All
- Order deny,allow
- allow from All
- </Directory>
- ServerName site1.local
- ServerAlias site1.local
- ScriptAlias /cgi-bin/ "C:/tmp/site001/cgi-bin/"
- DocumentRoot "C:/tmp/site001"
- ErrorLog "c:/logs/site1.local.err"
- CustomLog "c:/logs/site1.local.log" combined
- </VirtualHost>
- ####################################
- #### site2.local VirtualHost ####
- <VirtualHost site2.local:80>
- <Directory "C:/tmp/site002">
- Options FollowSymLinks Indexes
- AllowOverride All
- Order deny,allow
- allow from All
- </Directory>
- ServerName site2.local
- ServerAlias site2.local
- ScriptAlias /cgi-bin/ "C:/tmp/site002/cgi-bin/"
- DocumentRoot "C:/tmp/site002"
- ErrorLog "c:/logs/site2.local.err"
- CustomLog "c:/logs/site2.local.log" combined
- </VirtualHost>
- ####################################
- #### site3.local VirtualHost ####
- <VirtualHost 127.0.0.1:80>
- <Directory "C:/tmp/site003">
- Options FollowSymLinks Indexes
- AllowOverride All
- Order deny,allow
- allow from All
- </Directory>
- ServerName site3.local
- ServerAlias site3.local
- ScriptAlias /cgi-bin/ "C:/tmp/site003/cgi-bin/"
- DocumentRoot "C:/tmp/site003"
- ErrorLog "c:/logs/site3.local.err"
- CustomLog "c:/logs/site3.local.log" combined
- </VirtualHost>
- ####################################
- #### site4.local VirtualHost ####
- <VirtualHost 127.0.0.1:80>
- <Directory "C:/tmp/others">
- Options FollowSymLinks Indexes
- AllowOverride All
- Order deny,allow
- allow from All
- </Directory>
- ServerName site4.local
- ServerAlias site4.local
- ScriptAlias /cgi-bin/ "C:/tmp/others/cgi-bin/"
- DocumentRoot "C:/tmp/others"
- ErrorLog "c:/logs/site4.local.err"
- CustomLog "c:/logs/site4.local.log" combined
- </VirtualHost>
- ####################################
- #### clinic.local VirtualHost (PARKED) ####
- <VirtualHost 127.0.0.1:80>
- <Directory "C:/tmp/site002">
- Options FollowSymLinks Indexes
- AllowOverride All
- Order deny,allow
- allow from All
- </Directory>
- ServerName clinic.local
- ServerAlias clinic.local
- ScriptAlias /cgi-bin/ "C:/tmp/site002/cgi-bin/"
- DocumentRoot "C:/tmp/site002"
- ErrorLog "c:/logs/clinic.local.err"
- CustomLog "c:/logs/clinic.local.log" combined
- </VirtualHost>
- ####################################
- #### isenk.local VirtualHost (parked) ####
- <VirtualHost 127.0.0.1:80>
- <Directory "C:/tmp/others">
- Options FollowSymLinks Indexes
- AllowOverride All
- Order deny,allow
- allow from All
- </Directory>
- ServerName isenk.local
- ServerAlias isenk.local
- ScriptAlias /cgi-bin/ "C:/tmp/others/cgi-bin/"
- DocumentRoot "C:/tmp/others"
- ErrorLog "c:/logs/isenk.local.err"
- CustomLog "c:/logs/isenk.local.log" combined
- </VirtualHost>
- ####################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement