Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 5 of 50 FirstFirst ... 3 4 5 6 7 15 ... LastLast
Results 61 to 75 of 746
  1. #61
    Member
    Join Date
    Jun 2006
    Posts
    70

    Default

    Quote Originally Posted by sharmaine001 View Post
    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
    Cpanel can't support everything, and it's very difficult to support everything. If you're a sys admin, it's your duty to understand the system and make the necessary tweaks. I always have a separate server, for creating a virtual environment for tests, and that's what i used for understand the script, and develop it further. If you do that, you'll not have any problems. I only passed the script to my servers, after i tried and developed everything i need, now i've a script, that do everything automatically: install and uninstall.

  2. #62
    Member
    Join Date
    Jun 2006
    Posts
    146

    Default

    Quote Originally Posted by xanubi View Post
    Cpanel can't support everything, and it's very difficult to support everything. If you're a sys admin, it's your duty to understand the system and make the necessary tweaks. I always have a separate server, for creating a virtual environment for tests, and that's what i used for understand the script, and develop it further. If you do that, you'll not have any problems. I only passed the script to my servers, after i tried and developed everything i need, now i've a script, that do everything automatically: install and uninstall.
    Whats great with cPanel is they allow all server owners running in cPanel to open support tickets with them because they know their application by heart. With nginx they wont be able to do that

    The reason why I prefer cPanel is because if you're not an expert in system admistration, you can still do sysadmin with cPanel making everything available for easy management. It's their big difference among their competitors. So if they dont support/include nginx, that is a big deal for me

  3. #63
    Member
    Join Date
    Jun 2006
    Posts
    70

    Default

    Quote Originally Posted by sharmaine001 View Post
    Whats great with cPanel is they allow all server owners running in cPanel to open support tickets with them because they know their application by heart. With nginx they wont be able to do that

    The reason why I prefer cPanel is because if you're not an expert in system admistration, you can still do sysadmin with cPanel making everything available for easy management. It's their big difference among their competitors. So if they dont support/include nginx, that is a big deal for me
    I truly understand your point, but you should have some knowledge about Sysadmin. There're many scenarios that cpanel will not help you (which is normal), and if you've some Sysadmin knowledge, you'll correct the problem. Cpanel, is the best administration tool that a server can have, but cpanel is not a "god" of the server, and you should always have some knowledge, or you'll have problems in the future, if you've server with some amount of clients, and if you permit all kinds of open-source scripts. That's my opinion, based on my experience of a couple hundred servers.

    But, i really understand your point, and of course, in that situation, you shouldn't add nginx to the package.

  4. #64
    Member
    Join Date
    Oct 2009
    Posts
    5

    Default

    Just for information:

    Some command in file .htaccess and mod_headers not working...
    Like this below
    Code:
    Options +FollowSymLinks
    DirectoryIndex index.html
    Options All -Indexes
    Options -Includes -IncludesNOEXEC -ExecCGI
    RemoveHandler cgi-script .pl .py .cgi
    RemoveType php
    
    <IfModule mod_headers.c>
    Header unset Content-Type
    Header unset Content-Disposition
    Header set Content-Disposition attachment
    Header set Content-Type application/octet-stream
    Header add Content-Type application/force-download
    Header add Content-Type application/download
    Header unset Content-Transfer-Encoding
    Header set Content-Transfer-Encoding binary
    </IfModule>
    More information i have try add MIME

    location ^~ /files/ {
    types { image/jpeg jpg; }
    default_type application/download;
    }

    and use headers-more-nginx-module i get from this link README at master from agentzh's headers-more-nginx-module - GitHub

    But not fix this problem...
    hope some people here have more skill to fixed this problem.

  5. #65
    Member twhiting9275's Avatar
    Join Date
    Sep 2002
    Posts
    366
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by sharmaine001 View Post
    The reason why I prefer cPanel is because if you're not an expert in system admistration, you can still do sysadmin with cPanel making everything available for easy management.

    That's not 'system management' at all. It's a very bad idea to rely on cPanel for 'system management' or 'system administration'.

    Back on topic:
    I haven't given this a try yet, don't really want to turn my servers into test servers either. How well does nginx work with things like php, etc?
    Linux Tech Networks: Reliable Server Administration and Monitoring since 2002

  6. #66
    Member
    Join Date
    Jun 2006
    Posts
    70

    Default

    Quote Originally Posted by twhiting9275 View Post
    Back on topic:
    I haven't given this a try yet, don't really want to turn my servers into test servers either. How well does nginx work with things like php, etc?
    That's not the point of this script & installation. In this script, nginx is used as a proxy and only serves static and media files (images, videos, js, css, html, txt, docs, pdf, etc.), the rest, nginx pass it to apache in the background to serve ONLY php/cgi.

  7. #67
    Registered User
    Join Date
    Feb 2010
    Posts
    1

    Default

    with nginx like a reverse proxy the htaccess and mod_rewirte works or not?

  8. #68
    Member
    Join Date
    Jan 2007
    Posts
    27

    Default

    -------------------
    Last edited by NightRider; 03-19-2010 at 03:58 PM.

  9. #69
    Member
    Join Date
    Jan 2007
    Posts
    27

    Default

    Quote Originally Posted by viciovirtual View Post
    with nginx like a reverse proxy the htaccess and mod_rewirte works or not?
    works only with items served by apache

  10. #70
    Member
    Join Date
    Jun 2003
    Posts
    16

    Default

    Thanks blargman!

    It's an awesome script for so many reasons...cPanel really missing this.

    It's been installed on quite large server (many accounts) without a hitch.

    The only problem we can't really use until .htaccess directives doesn't work properly (after installing it the SEF url's didn't work on most of the domains).

    Here's a sample of one the .htaccess (it's vBulletin forum sef rewrite...similar to cPanel's forum)... do you know by any chance what are the non-supported lines ?

    Code:
    RewriteEngine On
    Options +FollowSymLinks 
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^somedomain\.com$
    RewriteRule (.*) http://somedomain.com/$1 [R=301,L]
    
    RewriteCond %{REQUEST_URI} !(admin/|moderator/|cron)
    RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ seo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^(admin|moderator|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ seo.php [L,QSA]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ seo_sitemap/seo_getsitemap.php?sitemap=$1 [L]

  11. #71
    Member
    Join Date
    Mar 2010
    Posts
    12

    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.
    Can you describe or release the tweaks? I'm also thinking of doing this - but honestly do not have the complete time to dive in.

    What are the drawbacks at the moment for running this script? Also, what about Apache upgrades?

    I run nginx+php-fpm on my main server, this is a reseller server so I'd like the best of both worlds...

  12. #72
    Member
    Join Date
    Sep 2005
    Posts
    37

    Default

    Very useful thread - thanks!

    Few changes I've made:

    1. Larger buffers:

    Code:
                proxy_buffer_size    64k;
                proxy_buffers     16 32k;
    Am thinking this can be moved to the main nginx.conf rather than being duplicated in each vhost file, along with most other proxy_* settings?

    2. Added 'reset_timedout_connection on' to nginx.conf

    3. Increased server_names_hash_bucket_size to higher values as necessary


    Lastly, when changing an account's IP in WHM the Nginx config isn't updated - that's probably my only feature request!

  13. #73
    Member
    Join Date
    Mar 2010
    Posts
    12

    Default

    Quote Originally Posted by Beansprout View Post
    Very useful thread - thanks!

    Few changes I've made:

    1. Larger buffers:

    Code:
                proxy_buffer_size    64k;
                proxy_buffers     16 32k;
    Am thinking this can be moved to the main nginx.conf rather than being duplicated in each vhost file, along with most other proxy_* settings?

    2. Added 'reset_timedout_connection on' to nginx.conf

    3. Increased server_names_hash_bucket_size to higher values as necessary


    Lastly, when changing an account's IP in WHM the Nginx config isn't updated - that's probably my only feature request!
    What I did was add a /etc/nginx/proxy.conf file with:

    Code:
    proxy_redirect off;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    client_max_body_size 10m;
    client_body_buffer_size 128k;
    proxy_connect_timeout 90;
    proxy_send_timeout 90;
    proxy_read_timeout 90;
    proxy_buffer_size 4k;
    proxy_buffers 4 32k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;
    proxy_redirect http://206.214.223.169:8081 http://206.214.223.169;
    proxy_pass http://206.214.223.169:8081/;
    And replace the above in /scripts/createvhosts.py with:

    Code:
    include /etc/nginx/proxy.conf
    Then just run /scripts/createvhosts.py to regenerate. Seems to be working so far.
    Last edited by nshahzad; 03-27-2010 at 05:01 PM.

  14. #74
    Member
    Join Date
    Mar 2004
    Posts
    27

    Thumbs up

    Tested and approved.
    Resume entire quality of this system.

  15. #75
    Member
    Join Date
    Mar 2004
    Posts
    27

    Default

    I have a problem, the system is ignoring it. Htaccess.
    I have a configuration that generates the file with php. Js when it does not exist, however the. Htaccess is being ignored and the file is not generated.
    How do I get the nginx read the error before the 404. Htaccess. ?

+ Reply to Thread
Page 5 of 50 FirstFirst ... 3 4 5 6 7 15 ... LastLast
Similar Threads & Tags
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 and WHM Discussions
    Replies: 222
    Last Post: 08-24-2010, 06:22 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube