Skip to content

Instantly share code, notes, and snippets.

@mikkabond
Last active November 12, 2019 13:23
Show Gist options
  • Save mikkabond/af90f3aaed3084a049592fbacb3841bc to your computer and use it in GitHub Desktop.
Save mikkabond/af90f3aaed3084a049592fbacb3841bc to your computer and use it in GitHub Desktop.
Apache tips and configs
# httpd-vhosts.conf for Apache 2.2
<VirtualHost *:80>
ServerAdmin mikkabond@yandex.ru
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 mikkabond@yandex.ru
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 mikkabond@yandex.ru
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 mikkabond@yandex.ru
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