Nginx: Difference between revisions

Jump to navigation Jump to search
55 bytes added ,  14 March 2022
Mediawiki, not markdown
imported>Sjwhitak
(Added example.)
imported>Sjwhitak
(Mediawiki, not markdown)
echo "Here's all my blog files" > index.html
</syntaxhighlight>
Configure `<code>nginx`</code> to point at these files, edit `<code>/etc/nginx/sites-enabled/sites.conf`</code>:
<syntaxhighlight lang="nginx">
server {
Please note that specifically with mediawiki, there are more configurations typically added, like denying access to deleted images, cached files, etc. To do that, paste your URL to: [https://shorturls.redwerks.org/ shortURLs] and step through their given configuration. Finally, mediawiki uses [[mysql]] to run a database, though this is explained when you follow the [https://www.mediawiki.org/wiki/Manual:Installation_guide installation guide].
 
At this point, we have nginx pointing to port `<code>7777`</code> for our `<code>fastcgi`</code> server to run the php files. We need to configure `<code>fpm`</code> to do this:
<syntaxhighlight lang="bash">
vim /etc/php/7.4/fpm/pool.d/www.conf
Anonymous user

Navigation menu