Konuyu Oyla:
  • Toplam: 1 Oy - Ortalama: 2
  • 1
  • 2
  • 3
  • 4
  • 5
nginx - wordpress
#1
thanks to: Brian Chabot:
I wasn't sure where this should go... Feel free to add it to the
documentation.

You can see it at work (for about the next day or so...) at
http://bctest.c4i.me/ (or till I break it...)
The test site is identical in most ways to http://indiebandwebsites.com/
but runs nginx.

----- Feel free to share the below parts - no attribution necessary
-----

Here's my work-around for getting permalinks to work right in nginx and
WordPress using EHCP:

1. Change apachetemplate.nginx to read:
-------------cut-----------
# this file used in Easy Hosting Control Panel (ehcp), www.ehcp.net
# webserver config file for nginx webserver
# This version is meant to work right with WordPress and the
# nginx compatibility plugin.

server {
listen 80;
server_name {domainname} www.{domainname};

access_log {homedir}/logs/access_log;
error_log {homedir}/logs/error_log;
access_log /var/log/apache_common_access_log;
error_page 404 = @wordpress;
log_not_found off;
root {homedir}/httpdocs;
index index.php index.html index.htm;

location ^~ /files/ {
rewrite /files/(.+) /wp-includes/ms-files.php?file=$1
last;
}

location @wordpress {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root/index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_NAME /index.php;
}

location ^~ /blogs.dir/ {
internal;
root /path/to/blog/wp-content;
}

location ~ \.php$ {
try_files $uri @wordpress;
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params;
}

location ~ /\.ht {
deny all;
}

}
-------------cut-----------

2. Use the "nginx Compatibility" plugin for PHP5:
http://wordpress.org/extend/plugins/nginx-compatibility/
- Install plugin but DO NOT activate it on install (that would activate
the PHP4 version.)
- Go into the plugins directory and activate the php5 version manually.

Done. You can now use permalinks other than the default.
----------------
"Ana prensibimiz insana saygı" dedik, kimileri bunu yanlış anladı, sürekli tepemize çıktı. 
Bundan sonra ana prensibim: "isteyen istediği yere gitsin". Forumda sürekli negatif enerji yayanları, hakaret edenleri ya da hakaretimsi yazanları dahi banlayacağım. Forumda etkileşim azalacakmış umuruda değil. Yıllarca negatif enerjili insanlara katlandığım yeter.. 

Sonra duymadım, bilmiyordum yok.. 

Önemli konular listesi: https://destek.10tl.net/showthread.php?tid=99072
Android 10tl programı: https://destek.10tl.net/showthread.php?tid=98074
Görevli kuralları: https://destek.10tl.net/showthread.php?tid=99597
10tl.net Geneli (Forum açma v.b.) Kurallar: https://destek.10tl.net/showthread.php?tid=25433

twitter.png https://twitter.com/10tlnet
discord.png https://discord.gg/fUC7A2W
email.png  info (at.) 10tl.net
Ara
Cevapla PGM
Teşekkür verenler:
#2
Adminim bune?
Ara
Cevapla PGM
Teşekkür verenler:
#3
kurulum kodları sanırım :/
Ara
Cevapla PGM
Teşekkür verenler:


Hızlı Menü:


Şu anda bu konuyu okuyanlar: 1 Ziyaretçi



***

Online Shopping App
Online Shopping - E-Commerce Platform
Online Shopping - E-Commerce Platform
Feinunze Schmuck Jewelery Online Shopping