Skip to content

Instantly share code, notes, and snippets.

@Bolinha1
Created August 30, 2013 13:53
Show Gist options
  • Select an option

  • Save Bolinha1/6390084 to your computer and use it in GitHub Desktop.

Select an option

Save Bolinha1/6390084 to your computer and use it in GitHub Desktop.
1 - arquivo default do apache 2- arquivo da app restbeer 3- host
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
ServerName "restbeer.local"
DocumentRoot "/home/www/restbeer/"
<Directory "/home/www/restbeer/">
Options -Indexes FollowSymLinks
AllowOverride All
Order Allow,Deny
Allow from all
RewriteEngine On
# Redirect all requests not pointing at an actual file to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]
</Directory>
CustomLog /home/www/restbeer/restbeer-access_log combined
ErrorLog /home/www/restbeer/restbeer-error_log
127.0.0.1 localhost
127.0.1.1 bolinha
127.0.0.1 restbeer.local
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment