Page 4 of 52 FirstFirst ... 2345614 ... LastLast
Results 46 to 60 of 780

Thread: nginx automated installer

  1. #46
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    no license, copy, modify whatever. if you make money off it. umm, thank me or something

    cherokee. umm I've heard of it but never used it. Coming up with something similar should be fairly straightforward. I don't have much of a reason to make one but I could.

  2. #47
    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

    Hello,
    The following error is display

    [warn]: conflicting server name "7x.7x.2xx.58" on 0.0.0.0:80, ignored

    Where 7x.7x.2xx.58 is a dedicated Ip of my one reseller. All accounts under this reseller are using this IP.

    Why some sites showing 404 Not Found mostly sites which using mod_rewrite ?

    How can install nginx-0.8.33 with this script ?
    Last edited by 9xlinux; 02-27-2010 at 11:22 AM.

  3. #48
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Sep 2007
    Posts
    99

    Default

    Quote Originally Posted by 9xlinux View Post
    Hello,
    The following error is display

    [warn]: conflicting server name "7x.7x.2xx.58" on 0.0.0.0:80, ignored

    Where 7x.7x.2xx.58 is a dedicated Ip of my one reseller. All accounts under this reseller are using this IP.

    Why some sites showing 404 Not Found mostly sites which using mod_rewrite ?

    How can install nginx-0.8.33 with this script ?
    Since SSL isn't handled by nginx the ip association is fairly simple. If it's not on the main shared ip it gets the ip assigned to the server_name. So with resellers your getting this warning. if you are using Apache only the main shared for a reseller would show the Apache status. I could write in a check for if it's os shared ip and if it is not write out the ip to the server_name. I'm putting that in now.

    As for how to do version .8.33. , I do make a patch to the source to have the bytes log(bandwidth) output like Apache does so ou can't use a standard install. I can provide you with the patch


    As far as mod_rewrite goes. I'm not sure what you mean but I have an idea. By default we process .html files and some sites require Apache to process html for SEO rewrites.
    Last edited by blargman; 02-27-2010 at 08:53 PM.

  4. #49
    Member
    Join Date
    Jun 2006
    Posts
    79

    Default

    Quote Originally Posted by blargman View Post
    Since SSL isn't handled by nginx the ip association is fairly simple. If it's not on the main shared ip it gets the ip assigned to the server_name. So with resellers your getting this warning. if you are using Apache only the main shared for a reseller would show the Apache status. I could write in a check for if it's os shared ip and if it is not write out the ip to the server_name. I'm putting that in now.

    As for how to do version .8.33. , I do make a patch to the source to have the bytes log(bandwidth) output like Apache does so ou can't use a standard install. I can provide you with the patch


    As far as mod_rewrite goes. I'm not sure what you mean but I have an idea. By default we process .html files and some sites require Apache to process html for SEO rewrites.
    Blargamn, can you update the script to include the nginx .8.33 ?

    Also, can you make an upgrade script for upgrade the current nginx version that your script install to update to .8.33?

  5. #50
    Registered User
    Join Date
    Mar 2007
    Posts
    3

    Default

    error for me =(
    access key doesn't exist create it in WHM

  6. #51
    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 desordeiro View Post
    error for me =(
    In root whm Main >> Cluster/Remote Access >> Setup Remote Access Key
    Click Generate New Key

  7. #52
    Member
    Join Date
    Mar 2007
    Posts
    36

    Default

    got the error below when restarting the nginx or starting it ...

    [warn]: conflicting server name "xxx.xxx.xxx.xxx" on 0.0.0.0:80, ignored
    [warn]: conflicting server name "xxx.xxx.xxx.xxx" on 0.0.0.0:80, ignored

    from what i know it's happened because of wrong vhosts.conf but nginx can running fine

    one more feature which i think we all need is a hook to removing related vhost files on vhosts directory when terminating an account
    Last edited by nsetiono; 03-03-2010 at 05:29 AM.

  8. #53
    Member
    Join Date
    Feb 2010
    Posts
    10

    Default

    Quote Originally Posted by nsetiono View Post
    got the error below when restarting the nginx or starting it ...

    [warn]: conflicting server name "xxx.xxx.xxx.xxx" on 0.0.0.0:80, ignored
    [warn]: conflicting server name "xxx.xxx.xxx.xxx" on 0.0.0.0:80, ignored

    from what i know it's happened because of wrong vhosts.conf but nginx can running fine

    one more feature which i think we all need is a hook to removing related vhost files on vhosts directory when terminating an account
    run init script after install:
    /etc/init.d/nginx restart

  9. #54
    Member
    Join Date
    Dec 2001
    Posts
    7

    Default

    Blargman, thank you for your work!

    I use your sripts and have several comments:
    - it will be better not to log proxyfied requests twice (add "access_log off" to "location /")
    - your configuration can't proxy requests such as "/index.php/image.jpg?bla-bla-bla" because location regexp match URI without query string so I have changed createvhosts.py to generate configuration like this:
    root /home/someuser/public_html;
    access_log off;
    location ~* \.(gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|txt|js|css|exe|zip|rar|gz|tgz|uha|7z|doc|docx|xls|xlsx|pdf)$ {
    access_log /usr/local/apache/domlogs/somesite-bytes_log bytes_log;
    access_log /usr/local/apache/domlogs/somesite;
    try_files $uri @backend;
    }
    location / {
    proxy_redirect http://somesite:8081 http://somesite;
    proxy_redirect http://www.somesite:8081 http://www.somesite;

    proxy_redirect http://XX.XX.XX.XX:8081 http://XX.XX.XX.XX;
    proxy_pass http://XX.XX.XX.XX:8081/;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    location @backend {
    proxy_redirect http://somesite:8081 http://somesite;
    proxy_redirect http://www.somesite:8081 http://www.somesite;

    proxy_redirect http://XX.XX.XX.XX:8081 http://XX.XX.XX.XX;
    proxy_pass http://XX.XX.XX.XX:8081;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    - I think it will be better to send SIGHUP to nginx than restart it

    Are you planning to add hooks for suspend/unsuspend accounts?

  10. #55
    Member
    Join Date
    Feb 2010
    Posts
    10

    Default

    Quote Originally Posted by alexl View Post
    Blargman, thank you for your work!

    I use your sripts and have several comments:
    - it will be better not to log proxyfied requests twice (add "access_log off" to "location /")
    - your configuration can't proxy requests such as "/index.php/image.jpg?bla-bla-bla" because location regexp match URI without query string so I have changed createvhosts.py to generate configuration like this:

    - I think it will be better to send SIGHUP to nginx than restart it

    Are you planning to add hooks for suspend/unsuspend accounts?


    ...
    dedipvhost = """server {
    error_log /var/log/nginx/vhost-error_log warn;
    listen 80;
    server_name %s %s %s;
    access_log /usr/local/apache/domlogs/%s bytes_log;
    access_log /usr/local/apache/domlogs/%s combined;
    location ~* \.(gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|htm|html|txt|js|css|exe|zip|rar|gz|tgz|uha|7z|doc|docx|xls|xlsx|pdf)$ {
    root %s;
    try_files $uri @backend;
    }
    location @backend {
    internal;
    proxy_redirect http://%s:8081 http://%s;
    %s
    proxy_redirect http://%s:8081 http://%s;
    proxy_pass http://%s:8081;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    ...
    """ % (domain, alias, passedip, domain + "-bytes_log", domain, docroot, domain, domain, aliasstring, passedip, passedip, passedip, domain, domain, aliasstring, passedip, passedip, passedip)
    ...

    ...
    sharedipvhost = """server {
    error_log /var/log/nginx/vhost-error_log warn;
    listen 80;
    server_name %s %s;
    access_log /usr/local/apache/domlogs/%s bytes_log;
    access_log /usr/local/apache/domlogs/%s combined;
    location ~* \.(gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|htm|html|txt|js|css|exe|zip|rar|gz|tgz|uha|7z|doc|docx|xls|xlsx|pdf)$ {
    root %s;
    try_files $uri @backend;
    }
    location @backend {
    internal;
    proxy_redirect http://%s:8081 http://%s;
    %s
    proxy_pass http://%s:8081;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    ...
    """ % (domain, alias, domain + "-bytes_log", domain, docroot, domain, domain, aliasstring, passedip, domain, domain, aliasstring, passedip)
    ...

    Nginx Automated Installer For cPanel*|*iCodex's Blog
    Last edited by icodex; 03-05-2010 at 09:57 PM.

  11. #56
    Member
    Join Date
    Oct 2009
    Posts
    5

    Default

    Quote Originally Posted by blargman View Post
    Evidently I don't know hot to post in the right forum.

    This is an automated nginx installer for cpanel. Integrates so that domain adding/removal is all done automatically.
    Some people had asked for cpanel support. In lieu of that, this does pretty much everything I can think of that they would do. It creates a vhost for each domain/addon/subdomain and serves up static content.

    Let me know if you have any thoughts/questions or better yet suggestions.

    http://blargman.com/public.tar
    hi blargman you are is cool man ... muachhhhhhh.... lol
    thanks you very much sir ... good repurtation save my time.
    working perfect

  12. #57
    Registered User
    Join Date
    Aug 2004
    Posts
    2

    Default

    Thanks for your Great Script.

    I have added the following Code to the VHOST Template (after the root line) to add the support for the Cpanel error pages but this checks add a little i/o.
    Seems to work great for me.

    Code:
    if (-f $document_root/404.shtml ) {
    error_page 404 /404.shtml;
    }
    if (-f $document_root/405.shtml ) {
    error_page 405 /405.shtml;
    }
    if (-f $document_root/406.shtml ) {
    error_page 406 /406.shtml;
    }
    if (-f $document_root/407.shtml ) {
    error_page 407 /407.shtml;
    }
    if (-f $document_root/408.shtml ) {
    error_page 408 /408.shtml;
    }
    if (-f $document_root/409.shtml ) {
    error_page 409 /409.shtml;
    }
    if (-f $document_root/410.shtml ) {
    error_page 410 /410.shtml;
    }
    if (-f $document_root/411.shtml ) {
    error_page 411 /411.shtml;
    }
    if (-f $document_root/412.shtml ) {
    error_page 412 /412.shtml;
    }
    if (-f $document_root/413.shtml ) {
    error_page 413 /413.shtml;
    }
    if (-f $document_root/414.shtml ) {
    error_page 414 /414.shtml;
    }
    if (-f $document_root/415.shtml ) {
    error_page 415 /415.shtml;
    }
    if (-f $document_root/416.shtml ) {
    error_page 416 /416.shtml;
    }
    if (-f $document_root/417.shtml ) {
    error_page 417 /417.shtml;
    }
    if (-f $document_root/422.shtml ) {
    error_page 422 /422.shtml;
    }
    if (-f $document_root/423.shtml ) {
    error_page 423 /423.shtml;
    }
    if (-f $document_root/424.shtml ) {
    error_page 424 /424.shtml;
    }
    if (-f $document_root/500.shtml ) {
    error_page 500 /500.shtml;
    }
    if (-f $document_root/501.shtml ) {
    error_page 501 /501.shtml;
    }
    if (-f $document_root/502.shtml ) {
    error_page 502 /502.shtml;
    }
    if (-f $document_root/503.shtml ) {
    error_page 503 /503.shtml;
    }
    if (-f $document_root/504.shtml ) {
    error_page 504 /504.shtml;
    }
    if (-f $document_root/505.shtml ) {
    error_page 505 /505.shtml;
    }
    if (-f $document_root/506.shtml ) {
    error_page 506 /506.shtml;
    }
    if (-f $document_root/507.shtml ) {
    error_page 507 /507.shtml;
    }
    if (-f $document_root/510.shtml ) {
    error_page 510 /510.shtml;
    }
    If the customized error_page exists nginx delivered the customized page, if not the default error page is delivered.

  13. #58
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default

    I will be reluctant to use this unless cPanel makes an official release with option for nginx (from EasyApache)

    cPanel, can you let us know when do you plan to use alternative to apache such as nginx?

  14. #59
    Member
    Join Date
    Jun 2006
    Posts
    79

    Default

    Quote Originally Posted by sharmaine001 View Post
    I will be reluctant to use this unless cPanel makes an official release with option for nginx (from EasyApache)

    cPanel, can you let us know when do you plan to use alternative to apache such as nginx?
    Don't expect that in the near future.

    I've used this script in 10 production servers now (250+ accounts each), and is working perfect. I've added and corrected many things in this script, and i must say, this is superb! My servers are clean, quick, perfect!

    Some of the automatic tweaks i had to the script, was for example the support for Munin, for detailed graphic statistics about nginx traffic/volume/load.

  15. #60
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default

    Quote Originally Posted by xanubi View Post
    Don't expect that in the near future.

    I've used this script in 10 production servers now (250+ accounts each), and is working perfect. I've added and corrected many things in this script, and i must say, this is superb! My servers are clean, quick, perfect!

    Some of the automatic tweaks i had to the script, was for example the support for Munin, for detailed graphic statistics about nginx traffic/volume/load.
    This is exactly the problem, you have to do many tweaks to make this work. I dont want my production server to be in a trial and error and adjust config when necessary due to errors or such. I would really want to see cPanel integrate their software to nginx

    Your support from cPanel will also be voided since you are using something else they dont support

Page 4 of 52 FirstFirst ... 2345614 ... 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