Skip to content

Instantly share code, notes, and snippets.

@ItsAsbreuk
Created January 7, 2014 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ItsAsbreuk/8299370 to your computer and use it in GitHub Desktop.
Save ItsAsbreuk/8299370 to your computer and use it in GitHub Desktop.
Y.App apache-conf
<VirtualHost *:80>
ServerName mydomain.com
ServerAlias mydomain.com *.mydomain.com
DocumentRoot "/var/www/vhosts/mydomain.com/httpdocs"
<IfModule rewrite_module>
RewriteEngine on
RewriteCond %{HTTP:X-PJAX} ^true$
RewriteRule (.*) /pjaxdir/$1 [L]
# or:
# RewriteRule (.*) processpjax.php?uri=$1 [L]
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment