Last active
November 12, 2019 13:23
-
-
Save mikkabond/af90f3aaed3084a049592fbacb3841bc to your computer and use it in GitHub Desktop.
Apache tips and configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# httpd-vhosts.conf for Apache 2.2 | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "/xampp-1.77/htdocs/" | |
Alias "/site" "I:/localhost/site_folder" | |
<Directory "I:/localhost/site_folder" > | |
Order allow,deny | |
Allow from all | |
</Directory> | |
ServerName localhost | |
ErrorLog "logs/localhost-error.log" | |
CustomLog "logs/localhost-access.log" combined | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "C:/xampp/htdocs/" | |
Alias "/test" "I:/localhost/test_1" | |
<Directory "I:/localhost/test_1" > | |
Options Indexes FollowSymLinks MultiViews | |
Require all granted | |
</Directory> | |
Alias "/pochta911" "I:/localhost/pochta911.ru" | |
<Directory "I:/localhost/pochta911.ru" > | |
Options Indexes FollowSymLinks MultiViews | |
Require all granted | |
</Directory> | |
ServerName localhost | |
ErrorLog "logs/localhost-error.log" | |
CustomLog "logs/localhost-access.log" common | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "I:/localhost/modx/" | |
<Directory "I:/localhost/modx/"> | |
Require all granted | |
Options Indexes | |
</Directory> | |
ServerName modx.localhost | |
ErrorLog "logs/modx.localhost-error.log" | |
CustomLog "logs/modx.localhost-access.log" common | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
DocumentRoot "I:/localhost/wp/" | |
<Directory "I:/localhost/wp/"> | |
Require all granted | |
Options Indexes | |
</Directory> | |
ServerName wp.localhost | |
ErrorLog "logs/wp.localhost-error.log" | |
CustomLog "logs/wp.localhost-access.log" common | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment