onsa
12/20/2016 - 10:22 AM

Apache configuration

Apache configuration

sudo sublime /private/etc/hosts

127.0.0.1	{{appName}}.local www.{{appName}}.local.com
sudo sublime /etc/apache2/extra/httpd-vhosts.conf

<VirtualHost *:80>
    ServerAdmin janos@{{appName}}.local
    DocumentRoot "/Users/janosnemeth/Sites/{{appName}}/public"
    ServerName {{appName}}.local
    ServerAlias www.{{appName}}.local.com
    ErrorLog "/private/var/log/apache2/{{appName}}-local-error_log"
    CustomLog "/private/var/log/apache2/{{appName}}-local-access_log" common
    <Directory "/Users/janosnemeth/Sites/{{appName}}/public">
      Options Indexes FollowSymLinks
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
    </Directory>
</VirtualHost>
sudo sublime /etc/apache2/users/janosnemeth.conf 

<Directory "/Users/janosnemeth/Sites/{{appName}}/">
  Options Indexes MultiViews
  Require all granted
</Directory>
ExpiresActive On
ExpiresDefault "access plus 10 days"
ExpiresByType text/html "access plus 1 month 15 days 2 hours"
ExpiresByType image/gif M604800