Page 12 of 52 FirstFirst ... 2101112131422 ... LastLast
Results 166 to 180 of 780

Thread: nginx automated installer

  1. #166
    Registered Member
    Join Date
    Dec 2003
    Posts
    120

    Default

    i have a site that using .htaccess to redirect .php files to .html but nginx cant see that rule/html files and gives 404 error because there are no actual .html files
    there just php files which are rewrite to look like html
    how to tell nginx to send that 404 error to Apache and let apache find the file and serve it
    Last edited by bman; 07-11-2010 at 10:21 AM.

  2. #167
    Registered Member
    Join Date
    Dec 2003
    Posts
    120

    Default

    Quote Originally Posted by Indianets View Post
    Hello,

    I tried this script on a server and had to remove instantly, as it was showing 404 (of nginx) in some complex situations where apache will return a page.

    Is it possible to forward a 404 or any other error to apache to handle that properly?

    - Vijay
    thats what i also need " forward a 404 or any other error to apache to handle that properly "


    also

    Quote Originally Posted by xanubi View Post
    Like i said on your PM, if you let nignx proxy the request, apache will get that and read whatever you have (htaccess, etc.).
    is nignx proxying the request by default ? what do i need to change/enable to make it proxy requests
    Last edited by bman; 07-11-2010 at 12:00 PM.

  3. #168
    Registered Member
    Join Date
    Sep 2005
    Posts
    38

    Default

    As an improvement I would like to request to incorporate the custom 4xx/5xx errors to be implemented by default to redirect to: /home/$USER/public_html/4xx.shtml .

    This does not happen now,
    Maybe i'll look into it myself later.

  4. #169
    Registered Member
    Join Date
    Jul 2010
    Posts
    6

    Default

    hello, my client is having problems with redirect, all redirects written in his .htaccess works except for .html , can someone figure it out why? I'm using cpAnel with Apache + nginx

  5. #170
    Registered Member Solokron's Avatar
    Join Date
    Aug 2003
    Location
    Seattle
    Posts
    810
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    Refer to my previous post. Simply remove .htm and .html from the media type list and you should be good to go!

    Quote Originally Posted by dupe101 View Post
    hello, my client is having problems with redirect, all redirects written in his .htaccess works except for .html , can someone figure it out why? I'm using cpAnel with Apache + nginx
    .

  6. #171
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Dec 2009
    Posts
    185
    cPanel/WHM Access Level

    Root Administrator

    Thumbs up Latest Updated/Modified Version

    This is the latest modified vesion of this NginX installer which will solve almost all issues.
    All below issues are solved.
    1- .htaccess rewrite rules issue (Now not needed to remove htm/html from vHost)
    2- Proxy domain issue is solved.
    3- Custom error Pages issue is solved
    4- Gateway timeout issue

    You must need to uninstall old version before install via this version.

    Download nginx 0.8.49: http://goodealhosting.cn/nginx049.tar
    Download nginx 0.7.67: http://goodealhosting.cn/nginxstable.tar
    Last edited by 9xlinux; 08-11-2010 at 09:28 AM.
    Good Deal Hosting - Shared, Reseller, and Shoutcast Hosting
    OpenVZ VPS Solutions, Nginx Admin Forum

  7. #172
    Registered Member
    Join Date
    Mar 2010
    Posts
    12

    Default

    I'm having trouble with Apache/PHP not getting the client IP address, seems like everything is there, any ideas? I haven't updated yet, haven't had the chance

  8. #173
    Registered Member
    Join Date
    Sep 2007
    Posts
    29

    Default

    Quote Originally Posted by 9xlinux View Post
    This is the latest modified vesion of this NginX installer which will solve almost all issues.
    All below issues are solved.
    1- .htaccess rewrite rules issue (Now not needed to remove htm/html from vHost)
    2- Proxy domain issue is solved.
    3- Custom error Pages issue is solved
    4- Gateway timeout issue

    You must need to uninstall old version before install via this version.

    Download: http://goodealhosting.cn/nginx046.tar
    Thank you, i try yours and no error then.

  9. #174
    Registered Member InterServed's Avatar
    Join Date
    Jul 2007
    Posts
    253
    cPanel/WHM Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by 9xlinux View Post
    This is the latest modified vesion of this NginX installer which will solve almost all issues.
    All below issues are solved.
    1- .htaccess rewrite rules issue (Now not needed to remove htm/html from vHost)
    2- Proxy domain issue is solved.
    3- Custom error Pages issue is solved
    4- Gateway timeout issue

    You must need to uninstall old version before install via this version.

    Download: http://goodealhosting.cn/nginx046.tar
    Tho this modifications were made by some chinese if i don't mistake, found this like two months ago but forgot the link.

  10. #175
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Dec 2009
    Posts
    185
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by InterServed View Post
    Tho this modifications were made by some chinese if i don't mistake, found this like two months ago but forgot the link.
    Yes you are right, I have done just mirror more changes and updated with latest nginx version 0.8.46.
    This is my little continuation with this installer.
    Last edited by 9xlinux; 07-23-2010 at 10:35 AM.
    Good Deal Hosting - Shared, Reseller, and Shoutcast Hosting
    OpenVZ VPS Solutions, Nginx Admin Forum

  11. #176
    Registered Member
    Join Date
    Aug 2008
    Location
    India
    Posts
    222

    Cool

    is it possible to remove some domains from using nginx ? i have two sites which need apache only since they are using uber upload progress bars which pop error in nginx because they cant find file length

  12. #177
    Registered Member
    Join Date
    Jul 2010
    Posts
    6

    Lightbulb

    Quote Originally Posted by 9xlinux View Post
    This is the latest modified vesion of this NginX installer which will solve almost all issues.
    All below issues are solved.
    1- .htaccess rewrite rules issue (Now not needed to remove htm/html from vHost)
    2- Proxy domain issue is solved.
    3- Custom error Pages issue is solved
    4- Gateway timeout issue

    You must need to uninstall old version before install via this version.

    Download: http://goodealhosting.cn/nginx046.tar
    After uninstalling the old version, and install this one, it went fine however after entering the command:

    /etc/init.d/nginx restart
    I go this:

    Restarting nginx daemon: nginxRemaining processes: 19474
    cat: /var/run/nginx.pid: No such file or directory
    kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    not running[warn]: conflicting server name "*.az.vc" on 0.0.0.0:80, ignored
    [warn]: conflicting server name "*.sohbeti.biz" on 0.0.0.0:80, ignored
    [warn]: conflicting server name "*.sayt.im" on 0.0.0.0:80, ignored
    however I saw that:

    Nginx on my Server Status page (WHM) is UP

    and using top -c command via SSH, I saw

    22001 nobody 30 15 30432 18m 752 S 0.3 0.3 0:00.12 nginx: worker process

    Is nginx is already running on my server?

  13. #178
    Registered Member This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Dec 2009
    Posts
    185
    cPanel/WHM Access Level

    Root Administrator

    Default

    Quote Originally Posted by dupe101 View Post
    Restarting nginx daemon: nginxRemaining processes: 19474
    cat: /var/run/nginx.pid: No such file or directory
    kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
    not running[warn]: conflicting server name "*.az.vc" on 0.0.0.0:80, ignored
    [warn]: conflicting server name "*.sohbeti.biz" on 0.0.0.0:80, ignored
    [warn]: conflicting server name "*.sayt.im" on 0.0.0.0:80, ignored
    nginx can support wildcard subdomains.but it can't support different/multi domain based wildcard sub-domain.
    So you must need to remove wildcard subdomains like *.az.vc and restart nginx.
    Good Deal Hosting - Shared, Reseller, and Shoutcast Hosting
    OpenVZ VPS Solutions, Nginx Admin Forum

  14. #179
    Registered Member
    Join Date
    Sep 2005
    Posts
    37

    Default

    Fantastic thread here, excellent to see it going still!

    Has anyone updated from the older versions running 0.7 to the newer ones with 0.8? Did you have any problems or was it a straight install?

    One modification I've made to our setup is changing the 'httpd restart' to 'http graceful' in /etc/init.d/nginx to avoid disruptions when Apache is restarted - we were getting complaints from clients seeing 502 Bad Gateway errors because the script first restarts Nginx, then Apache, causing an interruption whereas the graceful restart is much smoother.

  15. #180
    Registered Member
    Join Date
    Mar 2007
    Posts
    143

    Default

    So, should we use the script from blargman or the script from 9xlinux

Page 12 of 52 FirstFirst ... 2101112131422 ... LastLast

Similar Threads

  1. Replies: 6
    Last Post: 08-19-2011, 03:38 AM
  2. Replies: 2
    Last Post: 01-11-2011, 09:51 AM
  3. nginx automated installer
    By blargman in forum cPanel & WHM Discussions
    Replies: 222
    Last Post: 08-24-2010, 06:22 PM

Tags for this Thread

bargain