Nginx:Vhost MediaWiki: Difference between revisions
No edit summary |
|||
| Line 1: | Line 1: | ||
==Tanpa SSL== | ==Tanpa SSL== | ||
<syntaxhighlight lang="nginx" line="1"> | |||
server { | |||
listen 80; | listen 80; | ||
listen [::]:80; | listen [::]:80; | ||
| Line 30: | Line 31: | ||
include snippets/fastcgi-php.conf; | include snippets/fastcgi-php.conf; | ||
} | } | ||
} | |||
</syntaxhighlight> | |||
==SSL Origin CloudFlare== | ==SSL Origin CloudFlare== | ||
<syntaxhighlight lang="nginx" line="1"> | |||
server { | |||
listen 80; | listen 80; | ||
listen [::]:80; | listen [::]:80; | ||
| Line 91: | Line 94: | ||
include snippets/fastcgi-php.conf; | include snippets/fastcgi-php.conf; | ||
} | } | ||
} | |||
</syntaxhighlight> | |||
==SSL Lets Encrypt== | ==SSL Lets Encrypt== | ||
<syntaxhighlight lang="shell" line="1"> | |||
server { | |||
server_name your-domain.com; | server_name your-domain.com; | ||
| Line 177: | Line 182: | ||
include snippets/fastcgi-php.conf; | include snippets/fastcgi-php.conf; | ||
} | } | ||
} | |||
</syntaxhighlight> | |||
[[Category:Server]] | [[Category:Server]] | ||
[[Category:Web Server]] | [[Category:Web Server]] | ||
[[Category:Nginx]] | [[Category:Nginx]] | ||
[[Category:MediaWiki]] | [[Category:MediaWiki]] | ||