Skip to content

Instantly share code, notes, and snippets.

@hjue
Last active December 28, 2015 18:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hjue/4da6b1e897de31d135f7 to your computer and use it in GitHub Desktop.
Save hjue/4da6b1e897de31d135f7 to your computer and use it in GitHub Desktop.
Justwriting Apache conf
配置方法一:
<VirtualHost *:80>
DocumentRoot "/data/web/www.justwriting.com"
ServerName justwriting
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride ALL
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
配置方法二:
<VirtualHost *:80>
DocumentRoot "/data/web/www.justwriting.com"
ServerName justwriting
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
Allow from all
</Directory>
<Files ~ "\.md$">
order allow,deny
deny from all
</files>
RewriteEngine on
RewriteCond $1 !^/(index\.php|css|highlight|images|posts|templates|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment