Learn about Centmin Mod LEMP Stack today
Become a Member

noob suggestion for vhost.conf

Discussion in 'Feature Requests & Suggestions' started by handsomechap, Feb 6, 2015.

  1. handsomechap

    handsomechap New Member

    6
    0
    1
    Dec 30, 2014
    Ratings:
    +0
    Local Time:
    10:54 PM
    Hi I am very new to centminmod, so apologies if this is inappropriate, but I am testing out multiple different cms using centminmod and find it would be very helpful if some basic rewrites (again apologies if incorrect terminology, im used to apache) could be included but hashed in the vhost.conf files to save some time, I noticed there is one for vbulletin, would it be possible to add some extra basic ones for the big/popular cms such as for wordpress to work with permalinks which I believe most people would want to enable as soon as they create a site:


    Code:
      #wordpress permalink rewrites
      #try_files $uri $uri/ /index.php?$args;
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,530
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    7:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    thanks @handsomechap for suggestion, just with wordpress there's much more than that link for wordpress to work (as is for vbulletin). However, I can see providing a link in vhost to centminmod.com/nginx_configure.html might be useful instead :)
     
  3. handsomechap

    handsomechap New Member

    6
    0
    1
    Dec 30, 2014
    Ratings:
    +0
    Local Time:
    10:54 PM
    Hi what else is required for wordpress? I just have that one line and it all seems to be working. I did also set up pagespeed and uncommented pagespeed in this domains .conf file, and also installed wp-ffpc but I just left is at default settings, I havent done anything in the guide here as I have only just found it:

    Nginx Wordpress + WP-FFPC Plugin Setup + ngx_pagespeed

    my output of curl -I is currently:

    HTTP/1.1 200 OK
    Server: nginx centminmod
    Content-Type: text/html;charset=utf-8
    Connection: keep-alive
    Vary: Accept-Encoding
    Pragma: no-cache
    X-Cache-Engine: WP-FFPC with memcached via PHP
    Date: Fri, 06 Feb 2015 15:52:39 GMT
    X-Page-Speed: 1.9.32.3-4448
    Cache-Control: max-age=0, no-cache, no-store, must-revalidate, post-check=0, pre-check=0

    Memcached is populated with cached files from the site and when I test its definitely being used to serve cached files, should I still do all the stuff in that guide or is it more optional? I apologise in advance, I am a noob with using nginx really.
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,530
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    7:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  5. handsomechap

    handsomechap New Member

    6
    0
    1
    Dec 30, 2014
    Ratings:
    +0
    Local Time:
    10:54 PM
    okay I have not yet tried super cache, I will read the guide as I know I have some sites using it, I just want to check that Im not going wrong though, if a client is using wordpress and wp-ffpc with memcached, is there any lines I definitely should be within the conf file other than the one to make permalinks work? Thanks!
     
  6. eva2000

    eva2000 Administrator Staff Member

    53,530
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    7:54 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    whatever is listed in Nginx Wordpress + WP-FFPC Plugin Setup + ngx_pagespeed is what you need nothing more usually :)