Skip to content

Instantly share code, notes, and snippets.

@Crawleyprint
Created July 18, 2012 10:41
Show Gist options
  • Save Crawleyprint/3135480 to your computer and use it in GitHub Desktop.
Save Crawleyprint/3135480 to your computer and use it in GitHub Desktop.
Valid htaccess for shippingeasy
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# 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>
DocumentRoot /Users/mladen/Sites
ServerName localhost
</VirtualHost>
#<VirtualHost *:80>
# DocumentRoot /Users/mladen/Sites/shippingeasy/web
# ServerName shippingeasy.dev
# ServerAlias www.shippingeasy.dev
#
# <Directory />
# AllowOverride All
# Allow from All
# </Directory>
#
# Alias /sf /Users/mladen/Sites/shippingeasy/lib/vendor/symfony/data/web/sf
# <Directory /Users/mladen/Sites/shippingeasy/lib/vendor/symfony/data/web/sf>
# AllowOverride All
# Allow from All
# </Directory>
# DirectoryIndex dev.php
#
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
# RewriteRule ^$ /dev.php/$1 [L]
#
# RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
# RewriteRule ^/api(.*)$ /rest_dev.php/$1
#</VirtualHost>
<VirtualHost *:80>
DocumentRoot /Users/mladen/Sites/shippingeasy/web
ServerName shippingeasy.dev
ServerAlias www.shippingeasy.dev
<Directory /Users/mladen/Sites/shippingeasy/web>
AllowOverride All
Allow from All
</Directory>
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteRule ^dev.php/rest_dev.php/api$ /rest_dev.php/api/$1 [L]
Alias /sf /Users/mladen/Sites/shippingeasy/lib/vendor/symfony/data/web/sf
<Directory /Users/mladen/Sites/shippingeasy/lib/vendor/symfony/data/web/sf>
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment