Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 56 Pomógł: 0 Dołączył: 24.10.2009 Ostrzeżenie: (0%)
|
Witam,
Chcę zrobić przekierowanie z dowolnej sub domeny na główną domenę, ale z tym żeby url.rewrite dobrze przepisywało linki, jak będzie przekierowanie. Z góry dziękuje i pozdrawiam |
|
|
|
![]() |
Post
#2
|
|
|
Grupa: Zarejestrowani Postów: 56 Pomógł: 0 Dołączył: 24.10.2009 Ostrzeżenie: (0%)
|
lighttpd.conf
Kod server.max-keep-alive-idle = 3 server.max-write-idle = 10 server.max-read-idle = 10 server.max-fds = 4096 server.reject-expect-100-with-417 = "disable" var.basedir = "/home/default/www/" var.logdir = "/var/log/lighttpd" var.statedir = "/var/lib/lighttpd" server.modules = ( "mod_rewrite", "mod_redirect", "mod_access", "mod_accesslog", "mod_status" ) server.event-handler = "linux-sysepoll" server.username = "www" server.groupname = "www" server.document-root = var.basedir server.pid-file = "/var/run/lighttpd.pid" server.errorlog = var.logdir + "/error.log" server.indexfiles = ("index.php", "index.html", "index.htm", "default.htm") server.follow-symlink = "enable" static-file.exclude-extensions = (".php", ".pl", ".cgi", ".fcgi") accesslog.filename = var.logdir + "/access.log" url.access-deny = ("~", ".inc") include "mod_fastcgi.conf" include "mime-types.conf" include_shell "/etc/lighttpd/include_vhost.sh" vhost Kod $HTTP["host"] =~ "^www\.(.*)" {
url.redirect = ( "^/(.*)" => "http://domena.pl/$1" ) $HTTP["host"] =~ "domena\.pl" { server.document-root = "/home/domena/www/" url.rewrite = ( ## przekierowania tutaj..... ) } Ten post edytował row 2.11.2010, 19:55:09 |
|
|
|
row przekierowanie z subdomeny - lighttpd 2.11.2010, 11:22:08
erix Cytatale z tym żeby url.rewrite dobrze przepisywał... 2.11.2010, 17:18:13
row robiąc np teraz przekierowanie z www na bez-www, ... 2.11.2010, 18:40:52
melkorm a może pokaż treść .htaccess? 2.11.2010, 18:44:54
erix Jak chcesz zobaczyć htaccess w LightTPD?
Cytatrob... 2.11.2010, 18:46:51 ![]() ![]() |
|
Aktualny czas: 24.12.2025 - 10:05 |