Added a sample Apache config.
This commit is contained in:
parent
462e15041b
commit
f4cf8d5a9a
2 changed files with 21 additions and 1 deletions
20
sample/apache.conf
Normal file
20
sample/apache.conf
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Sample Apache Virtual Host Entry
|
||||
#
|
||||
# If you'd rather not do it this way, the aliases can either be omitted
|
||||
# entirely (at the loss of utilizing shared PICKLES static content) or it can
|
||||
# be alternately accomplished via symlinks within your site's document root.
|
||||
#
|
||||
# As for the PHP include_path (which is very mandatory) you could set it
|
||||
# directly in the php.ini file, or simply set the include_path with ini_set()
|
||||
# at the top of index.php (the sample has the line commented out for
|
||||
# reference.
|
||||
#
|
||||
<VirtualHost *>
|
||||
ServerName yoursite.com
|
||||
ServerAdmin your@email.com
|
||||
DocumentRoot /path/to/your/site/public
|
||||
Alias /pickles/css /path/to/pickles/css
|
||||
Alias /pickles/js /path/to/pickles/js
|
||||
Alias /pickles/images /path/to/pickles/images
|
||||
php_value include_path .:/path/to/pickles
|
||||
</VirtualHost>
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
ini_set('include_path', ini_get('include_path') . ':' . getcwd() . '../');
|
||||
// ini_set('include_path', ini_get('include_path') . ':/path/to/pickles');
|
||||
|
||||
require_once 'pickles.php';
|
||||
new Controller();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue