Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> przekierowanie z subdomeny - lighttpd
row
post
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
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
row
post
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
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 10:05