Hi
- Ubuntu:
- Install:
- sudo apt-get install lighttpd
- Reinstall:
- VirtualHost
- Zend:
- $HTTP["host"] == "fresh2u.php" {
server.document-root = "/var/www/zendpublic"
# url.rewrite-once = ( "^(/(?!(favicon.ico$|scripts/|styles/|images/|uploads/)).*)" => "index.php" )
url.rewrite-if-not-file = ("^/[^\?]*(\?.*)?$" => "index.php/$1")
alias.url = ( "/uploads/" => "/home/web/data/zend/uploads/" )
} - Tricks:
- Lighttpd can't bind to port: 80 Address already in use
- sudo apt-get install lsof
- lsof -i :80
- And you can see what program are running with port 80. Your issue was resolved.
- Required htpasswd Account:
- $HTTP["host"] == "hostname" {
server.document-root = "/home/web/active-collab/"
auth.backend= "htpasswd"
auth.backend.htpasswd.userfile="/etc/apache2/dav_svn.passwd"
auth.require = ("/" => (
"method" => "basic",
"realm" => "My Service",
"require" => "valid-user"
))
} - Centos:
Good luck!
No comments:
Post a Comment