Nginx:Vhost MediaWiki: Difference between revisions

No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 99: Line 99:
==SSL Lets Encrypt==
==SSL Lets Encrypt==


<syntaxhighlight lang="shell" line="1">
<syntaxhighlight lang="nginx" line="1">
server {
server {
         server_name your-domain.com;
         server_name your-domain.com;
Line 185: Line 185:
</syntaxhighlight>
</syntaxhighlight>


=== Mengatasi search tidak berfungsi<ref>[[mediawikiwiki:Topic:Wgr1qectnr965bmy|mediawiki.org]] - 404 error on rest.php on Mediawiki 1.35.1</ref> ===
<syntaxhighlight lang="nginx" line="1">
    location ~ \.php$ {
        include fastcgi_params;
        # fastcgi_index index.php;
        fastcgi_pass php_workers;
        # fastcgi_param HTTP_PROXY '';
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
    #Ini untuk mengatasinya
    location /rest.php {
        fastcgi_pass php_workers;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
</syntaxhighlight>
== Source ==
<references />
[[Category:Server]]
[[Category:Server]]
[[Category:Web Server]]
[[Category:Web Server]]
[[Category:Nginx]]
[[Category:Nginx]]
[[Category:MediaWiki]]
[[Category:MediaWiki]]