PDA

View Full Version : lighttpd and virtual host


aberrio
4th December 2008, 05:51
Hello,

I tried to follow this how to... http://www.howtoforge.com/creating-advanced-mysql-based-vhosts-on-lighttpd-debian-etch, on opensuse 11.0 but having problems.

iI belive my issues is in the mysql_vhost.pyfile.

When I tried to test the vhost with /usr/share/lighttpd/mysql_vhost.py lighttpd lighttpd secret I am getting this error..

: No such file or directory

How can I change this statement to be compatible with openSUSE 11.0...

print "$HTTP[\"host\"] == \"%s\" {\nserver.document-root = \"%s\"\n%s\n}" % (domain[0], domain[1], domain[2])..?

Regards

AL

aberrio
4th December 2008, 22:59
any update with this?

falko
5th December 2008, 17:07
What's the output of which env?

aberrio
5th December 2008, 19:30
Thx Falko I fix the issue, server need to be restared after add a new domain, is this something that I have to do?

falko
6th December 2008, 15:06
That's strange. Are there any errors in your logs? Did you disable AppArmor?