Thread: phpMyAdmin
View Single Post
  #2 (permalink)  
Old 01-27-2010, 10:33 PM
GuyPatterson GuyPatterson is offline
Senior Member
 
Join Date: Jul 2007
Location: 127.0.0.1
Posts: 389
Default

Not sure how this works for Apache, but with Lighttpd, I had to setup an "alias" for the virt-domains.. For example:

Code:
$SERVER["socket"] == "67.223.255.255:9925" {

	ssl.engine = "enable"
	ssl.pemfile = "/etc/lighttpd/ssl/virt-host.tld/server.pem"

	$HTTP["host"] =~ "virt-host.tld" {

		$HTTP["remoteip"] !~ "68.95|127.0.0" {
			url.access-deny = ( "" ) 
		}

		var.servername = "virt-host.tld"
		server.document-root = "/var/www/" + servername
		accesslog.filename = "/var/log/httpd/" + servername + "-access.log"

		alias.url = (
			"/phpmyadmin" => "/usr/share/phpmyadmin",
			"/stats/" => "/usr/lib/cgi-bin/"
		)
	}
}
Looks like you have "ScriptAlias" defined, but compared to the lighttpd config, it looks incomplete? How does Apache know where the "/phpMyAdmin" folder is on the disk?
Reply With Quote