Skip to content

Instantly share code, notes, and snippets.

@johnzuh
Created October 20, 2013 22:12
Show Gist options
  • Save johnzuh/7076013 to your computer and use it in GitHub Desktop.
Save johnzuh/7076013 to your computer and use it in GitHub Desktop.
My vhosts setting
# 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>
VirtualDocumentRoot "/Library/WebServer/Documents/TYPO3-Neos/Web/"
ServerName neos.dev
<Directory /document/root/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
SetEnv CONTEXT Development
SetEnv FLOW_CONTEXT Development
php_admin_flag display_errors 1
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/opt/local/apache2/docs/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 [email protected]
DocumentRoot "/opt/local/apache2/docs/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>
@radmiraal
Copy link

NameVirtualHost *:80

<VirtualHost *:80>
VirtualDocumentRoot "/Library/WebServer/Documents/TYPO3-Neos/Web/"
ServerName neos.dev

<Directory /Library/WebServer/Documents/TYPO3-Neos/Web/>
    Options -Indexes FollowSymLinks MultiViews
    AllowOverride All

    Order deny,allow
    SetEnv CONTEXT Development
    SetEnv FLOW_CONTEXT Development
    php_admin_flag display_errors 1
</Directory>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment