mirror of
https://github.com/correl/melpa.git
synced 2024-12-22 19:17:27 +00:00
update melpa config to rewrite url
This commit is contained in:
parent
8851c51e62
commit
07ce78e290
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,11 @@
|
||||||
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
server {
|
||||||
|
server_name melpa.milkbox.net;
|
||||||
|
rewrite ^ $scheme://melpa.org$request_uri? permanent;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80; ## listen for ipv4; this line is default and implied
|
listen 80; ## listen for ipv4; this line is default and implied
|
||||||
#listen [::]:80 default ipv6only=on; ## listen for ipv6
|
#listen [::]:80 default ipv6only=on; ## listen for ipv6
|
||||||
|
@ -25,6 +30,7 @@ server {
|
||||||
|
|
||||||
# Make site accessible from http://localhost/
|
# Make site accessible from http://localhost/
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
server_name melpa.org;
|
||||||
|
|
||||||
# proxy to Apache 2 and mod_python
|
# proxy to Apache 2 and mod_python
|
||||||
location / {
|
location / {
|
||||||
|
|
Loading…
Reference in a new issue