Skip to content

nginx configuration

Alex Eastaugh edited this page Feb 7, 2018 · 3 revisions

Here is an example of nginx configuration for Wikitten

# serve static files directly
location ~* ^/static/(css|js|img|fonts)/.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt|swf|pdf|txt|bmp|eot|svg|ttf|woff|woff2)$ {
    access_log        off;
    expires           max;
}
location / {
    rewrite ^(.*)$ /index.php last;
}
location ~ /index.php$ {
    # Your php module configuration
}
Clone this wiki locally