http://techwiki.co.uk/index.php?title=Moodle_Nginx_Config&feed=atom&action=history
Moodle Nginx Config - Revision history
2024-03-29T04:56:11Z
Revision history for this page on the wiki
MediaWiki 1.34.0
http://techwiki.co.uk/index.php?title=Moodle_Nginx_Config&diff=149&oldid=prev
Adam.birds at 17:28, 30 April 2016
2016-04-30T17:28:17Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 17:28, 30 April 2016</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l57" >Line 57:</td>
<td colspan="2" class="diff-lineno">Line 57:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Moodle]]</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Nginx]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Nginx]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Linux]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Linux]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Contents]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Contents]]</div></td></tr>
</table>
Adam.birds
http://techwiki.co.uk/index.php?title=Moodle_Nginx_Config&diff=98&oldid=prev
Adam.birds: Created page with "'''Here is the Nginx Config for Moodle:''' <pre> upstream examplecombackend { server unix:/var/run/php-fcgi-examplecom.sock; } server { listen 80; listen 4..."
2016-04-28T10:52:17Z
<p>Created page with "'''Here is the Nginx Config for Moodle:''' <pre> upstream examplecombackend { server unix:/var/run/php-fcgi-examplecom.sock; } server { listen 80; listen 4..."</p>
<p><b>New page</b></p><div>'''Here is the Nginx Config for Moodle:'''<br />
<br />
<pre><br />
upstream examplecombackend {<br />
server unix:/var/run/php-fcgi-examplecom.sock;<br />
}<br />
<br />
server {<br />
listen 80;<br />
listen 443 ssl;<br />
server_name example.com;<br />
root /var/www/vhosts/example.com/htdocs;<br />
<br />
ssl_certificate /etc/nginx/ssl/example.com.crt;<br />
ssl_certificate_key /etc/nginx/ssl/example.com.key;<br />
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;<br />
ssl_ciphers RC4-SHA:!HIGH:!ADH;<br />
<br />
location / {<br />
index index.html index.php;<br />
try_files $uri $uri/ @handler;<br />
expires 30d;<br />
}<br />
<br />
location /app/ { deny all; }<br />
location /includes/ { deny all; }<br />
location /media/downloadable/ { deny all; }<br />
location /pkginfo/ { deny all; }<br />
location /report/config.xml { deny all; }<br />
location /var/ { deny all; }<br />
<br />
location /. {<br />
return 404;<br />
}<br />
<br />
location @handler {<br />
rewrite / /index.php;<br />
}<br />
<br />
location /dataroot/ {<br />
internal;<br />
alias /var/www/vhosts/example.com/moodledata/;<br />
}<br />
<br />
include "ssl_offloading.inc";<br />
<br />
location ~ [^/]\.php(/|$) {<br />
fastcgi_split_path_info ^(.+\.php)(/.+)$;<br />
fastcgi_index index.php;<br />
fastcgi_pass examplecombackend;<br />
include fastcgi_params;<br />
fastcgi_param PATH_INFO $fastcgi_path_info;<br />
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br />
}<br />
<br />
}<br />
</pre><br />
<br />
[[Category:Nginx]]<br />
[[Category:Linux]]<br />
[[Category:Contents]]</div>
Adam.birds