• Rejestracja
vBHELP.pl - polskie wsparcie vBulletin
  1. #1
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie Lighttpd i przyjazne linki vbseo

    Jak po prawnie ustawić Lighttpd ? bo nie mam przyjaznych linków cały czas wyrzuca mi

    404 - Not Found
    Jaki plik ma być na ftp w katalogu gdzie mamy vb .htaccess czy lighttpd_rewrite.txt ?
    .htaccess z taką zawartośćcią

    Kod:
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    czy lighttpd_rewrite.txt


    $HTTP["host"] == "yourdomain.com" {

    server.document-root = "/path/to/your/public_html/"

    url.rewrite-once = (

    "^/forums/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/forums/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",

    "^(/forums/(admincp|modcp|clientscript|cpstyles|images|custom avatars)/.*)$" => "$1",

    "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",

    "^/forums/(.+)\?(.*)$" => "/forums/vbseo.php?$2",

    "^/forums/(.+)$" => "/forums/vbseo.php"

    )

    }
    Żadne z tych nie działa nadal wywala.
    404 - Not Found
    Ostatnio edytowane przez day-dreamer ; 08.10.2010 o 17:59



  2. #2
    Awatar Max
    Max
    Max jest nieaktywny There's something in the Air ...
    Dołączył
    Jan 2008
    Posty
    4 775
    Przydatne posty
    252
    Wpisów
    13

    Domyślnie

    "htaccess" na lighttpd nazywa się lighttpd.conf . W zawartość dodajesz oczywiście kod ze lighttpd_rewrite.txt .


  3. #3
    Awatar day-dreamer
    day-dreamer jest nieaktywny Użytkownik vBHELP.pl
    Dołączył
    Feb 2008
    Posty
    723
    Przydatne posty
    3

    Domyślnie

    Dobra zrobiłem

    tak musi wyglądać

    /etc/lighttpd/lighttpd.conf

    # Debian lighttpd configuration file
    #

    ############ Options you really have to take care of ####################

    ## modules to load
    # mod_access, mod_accesslog and mod_alias are loaded by default
    # all other module should only be loaded if neccesary
    # - saves some time
    # - saves memory

    server.modules = (
    "mod_access",
    "mod_alias",
    "mod_accesslog",
    "mod_compress",
    "mod_rewrite",
    # "mod_redirect",
    # "mod_evhost",
    # "mod_usertrack",
    # "mod_rrdtool",
    # "mod_webdav",
    # "mod_expire",
    # "mod_flv_streaming",
    # "mod_evasive"
    )

    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/var/www/"

    ## where to upload files to, purged daily.
    server.upload-dirs = ( "/var/cache/lighttpd/uploads" )

    ## where to send error-messages to
    server.errorlog = "/var/log/lighttpd/error.log"

    ## files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm",
    "index.lighttpd.html" )


    ## Use the "Content-Type" extended attribute to obtain mime type if possible
    # mimetype.use-xattr = "enable"

    #### accesslog module
    accesslog.filename = "/var/log/lighttpd/access.log"

    ## deny access the file-extensions
    #
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )

    ##
    # which extensions should not be handle via static-file transfer
    #
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )


    ######### Options that are good to be but not neccesary to be changed #######

    ## Use ipv6 only if available. (disabled for while, check #560837)
    #include_shell "/usr/share/lighttpd/use-ipv6.pl"

    ## bind to port (default: 80)
    # server.port = 81

    ## bind to localhost only (default: all interfaces)
    ## server.bind = "localhost"

    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"

    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd.pid"

    ##
    ## Format: <errorfile-prefix><status>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/var/www/"

    ## virtual directory listings
    dir-listing.encoding = "utf-8"
    server.dir-listing = "enable"

    ## send unhandled HTTP-header headers to error-log
    #debug.dump-unknown-headers = "enable"

    ### only root can use these options
    #
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"

    ## change uid to <uid> (default: don't care)
    server.username = "www-data"

    ## change uid to <uid> (default: don't care)
    server.groupname = "www-data"

    #### compress module
    compress.cache-dir = "/var/cache/lighttpd/compress/"
    compress.filetype = ("text/plain", "text/html", "application/x-javascript", "text/css")


    #### url handling modules (rewrite, redirect, access)
    # url.rewrite = ( "^/$" => "/server-status" )
    # url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )

    #
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #
    # evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"

    #### expire module
    # expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")

    #### rrdtool
    # rrdtool.binary = "/usr/bin/rrdtool"
    # rrdtool.db-name = "/var/www/lighttpd.rrd"

    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"

    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")


    #### external configuration files
    ## mimetype mapping
    include_shell "/usr/share/lighttpd/create-mime.assign.pl"

    ## load enabled configuration files,
    ## read /etc/lighttpd/conf-available/README first
    include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

    #### handle Debian Policy Manual, Section 11.5. urls
    ## by default allow them only from localhost
    ## (This must come last due to #445459)
    ## Note: =~ "127.0.0.1" works with ipv6 enabled, whereas == "127.0.0.1" doesn't
    $HTTP["remoteip"] =~ "127.0.0.1" {
    alias.url += (
    "/doc/" => "/usr/share/doc/",
    "/images/" => "/usr/share/images/"
    )
    $HTTP["url"] =~ "^/doc/|^/images/" {
    dir-listing.activate = "enable"
    }
    }

    $HTTP["host"] == "music-cast.pl" {
    server.document-root = "/home/cast/public_html/"
    url.rewrite-once = (
    "^/(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
    "^(/(admincp|modcp|clientscript|cpstyles|images|custom avatars)/.*)$" => "$1",
    "^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
    "^/(.+)\?(.*)$" => "/vbseo.php?$2",
    "^/(.+)$" => "/vbseo.php"
    )
    }
    Ostatnio edytowane przez day-dreamer ; 09.10.2010 o 17:12


Podobne wątki

  1. Odpowiedzi: 8
    Ostatni post / autor: 31.07.2010, 16:32
  2. Odpowiedzi: 4
    Ostatni post / autor: 19.05.2010, 17:37
  3. Przyjazne linki
    By BOŁOZ in forum vBulletin 3
    Odpowiedzi: 4
    Ostatni post / autor: 10.11.2008, 11:50
  4. Linki w vbseo?
    By caleodao in forum vBSEO
    Odpowiedzi: 0
    Ostatni post / autor: 04.11.2008, 00:24
  5. Przyjazne linki a wersja 3.7.x
    By Lirt in forum Przed zakupem - pytania początkujących
    Odpowiedzi: 1
    Ostatni post / autor: 22.04.2008, 00:14
Chmurka.pl

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67