Results 1 to 13 of 13

nginx in htaccess folder

This is a discussion on nginx in htaccess folder within the General Discussion forums, part of the vBSEO SEO Plugin category; yesterday my support install nginx on my server i found in vbseo htaccess folder 2 files txt 1 is htaccess ...

  1. #1
    Senior Member
    Real Name
    khaled
    Join Date
    Jan 2007
    Location
    jeddah
    Posts
    107
    Liked
    0 times

    Question nginx in htaccess folder

    yesterday my support install nginx on my server

    i found in vbseo htaccess folder

    2 files txt

    1 is htaccess
    and th other is nginx.txt

    i upload htaccess to my forums only

    but what i do for nginx ? install it or not and how ?

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    nginx doesn't support htaccess files. That is an apache directive.

    If you want to use nginx and have it enabled on your server, you need to add the nginx rules to your nginx.conf file on your server.

  3. #3
    Senior Member
    Real Name
    khaled
    Join Date
    Jan 2007
    Location
    jeddah
    Posts
    107
    Liked
    0 times
    thanks Brian for your answer

    ok that is mean i delete htaccess files now and give my support nginx txt to add in nginx.conf right ?

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    If you're running on nginx, the htaccess file will have no effect, so yes you can delete it, and yes, then add the nginx rules to the config file and restart the webserver.

    Nginx doesn't look to be enabled on the site in your sig (still showing apache on my server sniffer).

  5. #5
    Senior Member
    Real Name
    khaled
    Join Date
    Jan 2007
    Location
    jeddah
    Posts
    107
    Liked
    0 times
    Thanks Brian Iwill inform him

    have nice day

  6. #6
    Senior Member
    Real Name
    khaled
    Join Date
    Jan 2007
    Location
    jeddah
    Posts
    107
    Liked
    0 times
    how i ensure if it enabled and work with my forum now ?

    Quote Originally Posted by Brian Cummiskey View Post
    If you're running on nginx, the htaccess file will have no effect, so yes you can delete it, and yes, then add the nginx rules to the config file and restart the webserver.

    Nginx doesn't look to be enabled on the site in your sig (still showing apache on my server sniffer).

  7. #7
    vBSEO.com Webmaster Mert Gökçeimam's Avatar
    Real Name
    Lizard King
    Join Date
    Oct 2005
    Location
    Istanbul, Turkey, Turkey
    Posts
    23,100
    Liked
    622 times
    Blog Entries
    4
    I am not sure i understand your question correctly. Can you please try explain your question more detailed so we can assist.
    Mert Gökçeimam / Crawlability Inc.

    vBSEO 3.6.0 Alpha Önizlemesi - Including Like Tree
    Unveiling the NEW vBSEO Sitemap Generator 3.0 - available NOW for vBSEO Customers!


    Twitter:@Depkac
    Personal Blog : Mert Gökçeimam

  8. #8
    Senior Member
    Real Name
    khaled
    Join Date
    Jan 2007
    Location
    jeddah
    Posts
    107
    Liked
    0 times
    humm if you see her Brian say

    Nginx doesn't look to be enabled on the site in your sig (still showing apache on my server sniffer).
    How he know ?

  9. #9
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2

  10. #10
    Senior Member
    Real Name
    khaled
    Join Date
    Jan 2007
    Location
    jeddah
    Posts
    107
    Liked
    0 times
    Thanks Brian

    i want to ask you for my forums rule


    location /vb/ {

    rewrite ^/vb/((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$
    /vb/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 last;

    if (!-e $request_filename) {
    rewrite ^/vb/(.*)$ /vb/vbseo.php last;
    }

    }

    if ($request_filename ~ "\.php$" ) {
    rewrite ^/vb/(.*)$ /vb/vbseo.php last;
    }

    is this Right ?!

    and do you have experience about NGINX AND HOW TO INSTALL IT etc...

    because my support told me this
    These directives have been added to your nginx configuration. However I'm
    not following how this is to be configured. I'm noticing apache is running
    on port 80, but I'm not seeing what port nginx is intended to be run on.

    Also, is this s custom configuration on your end? What I'm seeing
    doesn't suggest we installed this for you.

    Regards

  11. #11
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    What your host is referring to has nothing to do with vBSEO but totatlly to do with your server configuration.

    If you wish to use Apache webserver then you should use the .htaccess file. If you want to use NGINX then you need to use the nginx.txt file.

    As to how you actually have your server configured NGINX over Apache etc that is something you need to discuss with your host.

    Ceri

  12. #12
    Senior Member
    Real Name
    Mike
    Join Date
    Apr 2009
    Posts
    249
    Liked
    8 times
    I run on a dedicated server,
    we went through a lot of different setups to try and keep the load down to as close to 0 as possible...
    Currently

    nginx, fastcgi, memcache and running silky smooth

    I have however not touched the .htaccess or nginx.txt and it does seem to run perfect...
    Should I move all .htaccess to nginx.txt?

  13. #13
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    htaccess has 0 effect under nginx. it's simply a text file.
    nging.txt is also just a text file... those commands need to be added into the nginx.conf file on the server and then the service restarted for it to take effect.

    as far as i can tell, your site is still running on apache 2.2, not nginx. You should contact your provider to set your site up correctly

Similar Threads

  1. rewrite rules on nginx in sub folder
    By bradleyw in forum General Discussion
    Replies: 20
    Last Post: 09-18-2010, 03:18 AM
  2. Add WWW via htaccess to vbulletin in folder?
    By raymond in forum General Discussion
    Replies: 3
    Last Post: 04-17-2010, 02:26 PM
  3. admin folder / htaccess problem
    By Chad in forum URL Rewrite Settings
    Replies: 6
    Last Post: 02-24-2009, 01:25 AM
  4. Htaccess folder
    By Gregory in forum General Discussion
    Replies: 7
    Last Post: 01-06-2008, 11:52 PM
  5. htaccess redirects when moving folder
    By I, Brian in forum Troubleshooting
    Replies: 3
    Last Post: 10-05-2007, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •