|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97429 is a reply to message #97423] |
Sat, 07 April 2012 06:54   |
|
mustafaramadhan wrote on Sat, 07 April 2012 05:56kryptonite wrote on Fri, 06 April 2012 17:30Hey, I just to know how to edit the root, which is shown by the IP, just show a msg forbidden ?
What you mean?.
let's say my ip is xxx.xxx - someone goes into that IP, that shows a nginx forbidden page instead of something ?
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97432 is a reply to message #97429] |
Sat, 07 April 2012 07:51   |
|
this is rewrite rule for wordpress
#for wp super cache and pretty uri
if (-f $request_filename) {
break;
}
set $supercache_file "";
set $supercache_uri $request_uri;
if ($request_method = POST) {
set $supercache_uri "";
}
if ($query_string) {
set $supercache_uri "";
}
if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
set $supercache_uri "";
}
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;
}
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
if (!-e $request_filename) {
rewrite . /index.php last;
}
put it on /home/nginx/conf/globals save as wpconf
and chown : chown apache:apache wpconf
and go to domains on : /home/nginx/conf/domains/
choose your wordpress conf and edit
add this line to below }
include '/home/nginx/conf/globals/wpconf';
and restart nginx : service nginx restart
ready
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97433 is a reply to message #97429] |
Sat, 07 April 2012 07:56   |
|
kryptonite wrote on Sat, 07 April 2012 17:54mustafaramadhan wrote on Sat, 07 April 2012 05:56kryptonite wrote on Fri, 06 April 2012 17:30Hey, I just to know how to edit the root, which is shown by the IP, just show a msg forbidden ?
What you mean?.
let's say my ip is xxx.xxx - someone goes into that IP, that shows a nginx forbidden page instead of something ?
I think it's the same current issue with 'official' kloxo (6.1.12).
Need modified webserver config for this purpose instead with 'exclusive ip'.
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97434 is a reply to message #97432] |
Sat, 07 April 2012 07:57   |
|
prandah wrote on Sat, 07 April 2012 18:51this is rewrite rule for wordpress
#for wp super cache and pretty uri
if (-f $request_filename) {
break;
}
set $supercache_file "";
set $supercache_uri $request_uri;
if ($request_method = POST) {
set $supercache_uri "";
}
if ($query_string) {
set $supercache_uri "";
}
if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
set $supercache_uri "";
}
if ($supercache_uri ~ ^(.+)$) {
set $supercache_file /wp-content/cache/supercache/$http_host/$1index.html;
}
if (-f $document_root$supercache_file) {
rewrite ^(.*)$ $supercache_file break;
}
if (!-e $request_filename) {
rewrite . /index.php last;
}
put it on /home/nginx/conf/globals save as wpconf
and chown : chown apache:apache wpconf
and go to domains on : /home/nginx/conf/domains/
choose your wordpress conf and edit
add this line to below }
include '/home/nginx/conf/globals/wpconf';
and restart nginx : service nginx restart
Good job, prandah.
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97463 is a reply to message #97458] |
Mon, 09 April 2012 10:53   |
|
@ mustafaramadhan
I can confirm that "client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain" is not working in the FORK..
I did a clean reinstall on a vps with kloxo 6.1.12 and asign an ip to sub-domain with no problem (apache)+also aplly an ssl cert. and it was working fine..
I then updated kloxo to 6.1.2 latest fork and after reboot and fix web - clean up etc...
apache could not start it give me :
Starting httpd: Syntax error on line 8 of /home/apache/conf/domains/ssl.domain.com.conf:
The address or port is invalid
[FAILED]
I then looked the conf file and i found this entry: ## web for 'ssl.domain.com'
<VirtualHost \
ssl.domain.com:80 :443\
127.0.0.1:80\
>
ServerAdmin webmaster@ssl.domain.com
.
.
.
I looked in another subdomain of the same domain .conf file and it has this inside :
## web for 'live.domain.com'
<VirtualHost \
*:80 *:443\
>
ServerAdmin webmaster@live.domain.com
.
.
.
I then replaced this <VirtualHost \
ssl.domain.com:80 :443\
127.0.0.1:80\
with...
<VirtualHost \
*:80 *:443\
>
ServerAdmin webmaster@ssl.domain.com
and Apache started with no error..
But if i try HTTPS://ssl.domain.com -> Apache page not found..
If i try with http://ssl.domain.com -> works fine and i can see the page..
Also "client home -> ipaddresses -> ipaddress home -> domain config and map an IP to a domain" is not working as i had wrote before...
Any idea on what the problem is ?
PS: Tried both with djdns & bind still asing ip is not working..
& of course domain.com is a real full working subdomain that pings back to my ip...
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97487 is a reply to message #97480] |
Tue, 10 April 2012 04:07   |
|
Its OK mate no problem..
...[Update]....
I did steps 1 and 2b but when i reassing an ip to the domain i have exactly the same problems apache not working.....as before so i must disable again default ip for a domain...and modify the <VirtualHost \
*:80 *:443\
>
So installing an ssl is not possible on this FORK for now..
Despite that the server is blazing fast 
[Updated on: Tue, 10 April 2012 12:22] Report message to a moderator
|
|
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97655 is a reply to message #97640] |
Mon, 16 April 2012 05:48   |
|
Solutions for not forwarding real ip to apache
edit /etc/httpd/conf.d/rpaf.conf
and change:
### MR -- read /usr/local/lxlabs/kloxo/file/apache/rpaf.conf.original for full description ###
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1:30080
# RPAFheader X-Forwarded-For
RPAFheader X-Real-IP
to:
### MR -- read /usr/local/lxlabs/kloxo/file/apache/rpaf.conf.original for full description ###
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1
# RPAFheader X-Forwarded-For
RPAFheader X-Real-IP
Edit
Some issues with Joomla.
MyBB, Wordpress works perfect.
Edit
Joomla replace my computer ip with domain.
myip/forum
myip/category
and css not load
[Updated on: Tue, 17 April 2012 04:00] Report message to a moderator
|
|
|
|
|
| Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97960 is a reply to message #97903] |
Tue, 01 May 2012 09:00   |
|
With this forward real ip to apache. I've been tested it for few weeks.
### MR -- read /usr/local/lxlabs/
kloxo/file/apache/
rpaf.conf.original for full
description ###
LoadModule rpaf_module modules/
mod_rpaf-2.0.so
RPAFenable On
#RPAFsethostname On
RPAFproxy_ips 127.0.0.1
# RPAFheader X-Forwarded-For
RPAFheader X-Real-IP
|
|
|
|
|
|
|
|