httpd-vhosts.conf

# 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 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 "/srv/http/default" ServerName default.local # ServerAlias www.dummy-host.example.com ErrorLog "/srv/http/default/dummy-host.example.com-error_log" CustomLog "/srv/http/default/dummy-host.example.com-access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/srv/http/test" ServerName test.local # ServerAlias www.dummy-host.example.com ErrorLog "/srv/http/test/dummy-host.example.com-error_log" CustomLog "/srv/http/test/dummy-host.example.com-access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "/srv/http/jennifersmall" ServerName jennifersmall.local # ServerAlias www.dummy-host.example.com ErrorLog "/srv/http/jennifersmall/dummy-host.example.com-error_log" CustomLog "/srv/http/jennifersmall/dummy-host.example.com-access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin mehdi.bouhalassa@gmail.com DocumentRoot "/srv/http/lexpo" ServerName lexpo.local # ServerAlias lexpo.example ErrorLog "/srv/http/lexpo/error_log" CustomLog "/srv/http/lexpo/access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin mehdi.bouhalassa@gmail.com DocumentRoot "/srv/http/woocommerce" ServerName woocommerce.local <Directory "/srv/http/woocommerce"> # Options FollowSymLinks Options +ExecCGI +FollowSymlinks -SymLinksIfOwnerMatch AllowOverride None Require all granted </Directory> ErrorLog "/srv/http/woocommerce/error_log" CustomLog "/srv/http/woocommerce/access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin mehdi.bouhalassa@gmail.com DocumentRoot "/srv/http/php" ServerName php.local <Directory "/srv/http/php"> # Options FollowSymLinks Options +ExecCGI +FollowSymlinks -SymLinksIfOwnerMatch AllowOverride None Require all granted </Directory> ErrorLog "/srv/http/php/error_log" CustomLog "/srv/http/php/access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin mehdi.bouhalassa@gmail.com DocumentRoot "/srv/http/quickstart" ServerName quickstart.local <Directory "/srv/http/quickstart"> # Options FollowSymLinks Options +ExecCGI +FollowSymlinks -SymLinksIfOwnerMatch AllowOverride None Require all granted </Directory> ErrorLog "/srv/http/quickstart/error_log" CustomLog "/srv/http/quickstart/access_log" common </VirtualHost> <VirtualHost *:80> ServerAdmin mehdi.bouhalassa@gmail.com DocumentRoot "/srv/http/pascal" ServerName pascal.local <Directory "/srv/http/pascal"> # Options FollowSymLinks Options +ExecCGI +FollowSymlinks -SymLinksIfOwnerMatch AllowOverride None Require all granted </Directory> ErrorLog "/srv/http/pascal/error_log" CustomLog "/srv/http/pascal/access_log" common </VirtualHost>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.