Skip to content

Instantly share code, notes, and snippets.

@jsc-dev
Created June 2, 2015 21:11
Show Gist options
  • Select an option

  • Save jsc-dev/1e725c67cc3188a30351 to your computer and use it in GitHub Desktop.

Select an option

Save jsc-dev/1e725c67cc3188a30351 to your computer and use it in GitHub Desktop.

Revisions

  1. jsc-dev created this gist Jun 2, 2015.
    24 changes: 24 additions & 0 deletions apache24_vhost_laravel.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    ### note: vhost updated to apache 2.4
    ### using Require all granted, Require all denied
    ### instead of Allow from all, Deny from all...

    <VirtualHost *:80>

    ServerName demo.dev
    ServerAdmin [email protected]

    SetEnv MY_LARAVEL_ENV "local"

    DocumentRoot /home/icke/www/laravel/public
    DirectoryIndex index.php index.htm index.html

    <Directory "/home/icke/www/laravel/public">
    Options Indexes FollowSymLinks
    Order deny,allow
    AllowOverride All
    Require all granted
    </Directory>

    # RewriteEngine On
    AddDefaultCharset UTF-8
    </virtualHost>