LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Development Forums » Kloxo Development » [FORK] Nginx, Nginx-proxy and Lighttpd-proxy
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97417 is a reply to message #97416] Fri, 06 April 2012 06:01 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

My fork not related to xcache config. Maybe kloxo always overwrite with file inside /usr/local/lxlabs/kloxo/file.

http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97419 is a reply to message #97417] Fri, 06 April 2012 06:30 Go to previous messageGo to next message
kryptonite is currently offline kryptonite  
Messages: 7
Registered: February 2012
Member
Hey, I just to know how to edit the root, which is shown by the IP, just show a msg forbidden ?
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97423 is a reply to message #97419] Fri, 06 April 2012 20:26 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

kryptonite wrote on Fri, 06 April 2012 17:30
Hey, I just to know how to edit the root, which is shown by the IP, just show a msg forbidden ?

What you mean?.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97428 is a reply to message #97423] Sat, 07 April 2012 06:16 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

how do i set nginx to direct www ?

i have add this rule

    if ($host != 'ditusuk.in' ) {
        rewrite ^/(.*) http://www.ditusuk.in$1 permanent;
    }


on /home/nginx/domains

but still not direct to www

thanks in advace

found it Very Happy
go to domain home > misc confif > and click force domain to www

and run

sh /script/fixweb


ready

[Updated on: Sat, 07 April 2012 07:30]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97429 is a reply to message #97423] Sat, 07 April 2012 06:54 Go to previous messageGo to next message
kryptonite is currently offline kryptonite  Sri Lanka
Messages: 7
Registered: February 2012
Member
mustafaramadhan wrote on Sat, 07 April 2012 05:56
kryptonite wrote on Fri, 06 April 2012 17:30
Hey, 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 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

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 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

kryptonite wrote on Sat, 07 April 2012 17:54
mustafaramadhan wrote on Sat, 07 April 2012 05:56
kryptonite wrote on Fri, 06 April 2012 17:30
Hey, 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'.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97434 is a reply to message #97432] Sat, 07 April 2012 07:57 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

prandah wrote on Sat, 07 April 2012 18: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


Good job, prandah.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97447 is a reply to message #97434] Sun, 08 April 2012 03:27 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

use pure nginx why allways take a lot of ram Very Happy

[root@joglo ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          1010        981         28          0          4        250
-/+ buffers/cache:        726        283
Swap:         2044        318       1725
[root@joglo ~]#



ready

[Updated on: Sun, 08 April 2012 03:27]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97453 is a reply to message #97447] Sun, 08 April 2012 21:57 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@prandah,

check:
1. mysql running with innodb or myisam
2. check content of /etc/php-fpm.conf where setting for user set to 5 for fastcgi_children
3. disable or enable for clamav and xcache


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97458 is a reply to message #97453] Mon, 09 April 2012 03:54 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

yeah i found the problem
my server got high load with my wordpress
just 1 wordpress Very Happy


ready
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97463 is a reply to message #97458] Mon, 09 April 2012 10:53 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
@ 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 #97480 is a reply to message #97463] Mon, 09 April 2012 22:22 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@djscooby,

It's my fault and fixed now. Thanks.

But, 'exclusive ip' maybe still not work.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97487 is a reply to message #97480] Tue, 10 April 2012 04:07 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
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 Smile


[Updated on: Tue, 10 April 2012 12:22]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97551 is a reply to message #97487] Thu, 12 April 2012 00:17 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

@djscooby,

After follow step 1 and 2b then running 'sh /script/fixweb', It's because web config still stay on 'old' config. Another trick is switch to lighttpd and then back to nginx-proxy.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97597 is a reply to message #97551] Fri, 13 April 2012 11:38 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
Unfortunately it still don't work.. Tried the above and also tried php downgrade, reinstall the fork /script fix web and switch programs...

I have again to disable default domain and fix conf file for the domain like i did before...

[Updated on: Fri, 13 April 2012 11:56]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97609 is a reply to message #97597] Sat, 14 April 2012 03:41 Go to previous messageGo to next message
HerbertDBurke is currently offline HerbertDBurke  China
Messages: 1
Registered: April 2012
Member
How to change the nginx to stable version?

[Updated on: Sat, 14 April 2012 03:42]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97640 is a reply to message #97609] Sun, 15 April 2012 14:39 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

you just reinstall

./configure with prefiks
but i dont know what mr mustafa use prefiks
maybe he will share Very Happy


ready
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97655 is a reply to message #97640] Mon, 16 April 2012 05:48 Go to previous messageGo to next message
marid is currently offline marid  Poland
Messages: 69
Registered: November 2011
Valuable Member
Solutions for not forwarding real ip to apache Very Happy

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 #97725 is a reply to message #97655] Wed, 18 April 2012 15:53 Go to previous messageGo to next message
miftah is currently offline miftah  Indonesia
Messages: 13
Registered: December 2011
Location: jakarta
Member

any one help me ...
i can add client on slave but domain not work

i don't have something in /home/httpd/<domain>/conf/

i have
Quote:

sh /script/upcp
sh /script/cleanup
sh /script/fixweb
and reboot

but still not work

[Updated on: Wed, 25 April 2012 13:53]

Report message to a moderator

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97903 is a reply to message #95665] Fri, 27 April 2012 08:23 Go to previous messageGo to next message
kryptonite is currently offline kryptonite  Sri Lanka
Messages: 7
Registered: February 2012
Member
adding a new domain, nginx forbidden page
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97960 is a reply to message #97903] Tue, 01 May 2012 09:00 Go to previous messageGo to next message
marid is currently offline marid  Poland
Messages: 69
Registered: November 2011
Valuable Member
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

Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97962 is a reply to message #97960] Tue, 01 May 2012 10:03 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
Has anyone have any idea-solution regarding default ip for a domain... No matter what i tried it doesn't work..

i always get this problem : http://forum.lxcenter.org/index.php?t=msg&th=18106&g oto=97463&#msg_97463
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #97968 is a reply to message #97962] Tue, 01 May 2012 19:35 Go to previous messageGo to next message
prandah is currently offline prandah  Australia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

@djscooby waiting mr mustafa for this
maybe he will be back Very Happy

anyone do you have problem with me ?
my some page wgen install openx and some on admin panel wordpress
domain name change to ip ( not ip server, but ip user )
this problem when use nginx proxy


ready
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #98612 is a reply to message #97968] Sun, 10 June 2012 09:38 Go to previous messageGo to next message
djscooby is currently offline djscooby  Greece
Messages: 90
Registered: August 2011
Valuable Member
Is this project frozen ?
It seems Mr Mustafa last online was months ago ? Anyone has any news ?
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #98614 is a reply to message #98612] Sun, 10 June 2012 15:00 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
djscooby wrote on Sun, 10 June 2012 15:38
Is this project frozen ?
It seems Mr Mustafa last online was months ago ? Anyone has any news ?


What's going on. All devs seems to be out of here...
Re: [FORK] Nginx, Nginx-proxy and Lighttpd-proxy [message #98907 is a reply to message #98614] Fri, 29 June 2012 01:49 Go to previous message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5731
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Please go to http://forum.lxcenter.org/index.php?t=msg&goto=98906

This thread closed.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Previous Topic:Password Protected Directory & Awstats Problems
Next Topic:Apache driver testers needed
Goto Forum:
  


Current Time: Wed Jun 19 20:46:42 EDT 2013

Total time taken to generate the page: 0.02050 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software