-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved Apache & nginx installation stuff
- Loading branch information
Frank Boës
committed
Nov 29, 2016
1 parent
c868fd6
commit 390dfba
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
server { | ||
server_name example.com; # Replace with server name | ||
|
||
index index.html; | ||
error_page 404 /404.html; | ||
error_page 410 /404.html; | ||
|
||
# General Blogophon redirects | ||
location ~ ^/htdocs/(.*)$ { | ||
rewrite ^(.*)$ /$1 redirect; | ||
} | ||
location ~ ^/(posts|\d+(/\d+(/\d+)?)?)/?$ { | ||
rewrite ^(.*)$ / redirect; | ||
} | ||
|
||
# Add your stuff here | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters