Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You miss the leading "/" in the docroot, so the server is looking for the docroot in /etc/lighttpd/lighttpd/home/lighttpd/default/http. So edit lighttpd.conf and use
You miss the leading "/" in the docroot, so the server is looking for the docroot in /etc/lighttpd/lighttpd/home/lighttpd/default/http. So edit lighttpd.conf and use
Code:
server.document-root /home/lighttpd/default/http
I see. Thanks. I got it changed.
However "server-bind" must bind all interfaces as default. Otherwise lighttpd won't start at boot automatically.
(where x.x.x.x is your internal IP) is the problem? And if it was the problem, why lighttpd was starting using /etc/init.d/lighttpd start?
No I can't add;
Code:
server.bind = "x.x.x.x"
internal IP/Intranet_IP there.
Otherwise lighttpd won't start at boot even with
Code:
/etc/init.d/lighttpd start
OR
sh /etc/init.d/lighttpd start
added on /etc/rc.local. I don't know why? Once deleted and rebooted lighttpd started at boot. I can browse the webpage on browser (host's or other VM's) running "domain.com" or public_IP
So, what's in the logs?
I guess you've somehow borked the config file. Because you had also that error about the accesslog.filename, that is a legitimate option.
So, what's in the logs?
I guess you've somehow borked the config file. Because you had also that error about the accesslog.filename, that is a legitimate option.
$ sudo tail /var/log/lighttpd/error.log
Code:
2011-04-13 18:01:52: (server.c.954) WARNING: unknown config-key: accesslog.filename (ignored)
2011-04-13 18:03:43: (server.c.1503) server stopped by UID = 0 PID = 1219
2011-04-13 18:05:08: (log.c.166) server started
2011-04-13 18:05:08: (server.c.954) WARNING: unknown config-key: accesslog.filename (ignored)
2011-04-13 18:10:38: (server.c.1503) server stopped by UID = 0 PID = 1197
2011-04-13 18:12:11: (log.c.166) server started
2011-04-13 18:12:11: (server.c.954) WARNING: unknown config-key: accesslog.filename (ignored)
2011-04-13 22:25:09: (log.c.166) server started
2011-04-13 22:25:09: (server.c.954) WARNING: unknown config-key: accesslog.filename (ignored)
2011-04-13 22:27:30: (server.c.1503) server stopped by UID = 0 PID = 1242
to install lighttpd and then followed;
Lighttpd virtualhost configuration ~ name-based virtual hosting
How do I configure Lighttpd for name-based virtual hosting? http://www.cyberciti.biz/faq/howto-l...configuration/
instead. The configuration is completely different.
I'll try to rectify the mistakes, if possible. Otherwise I'll start again installing the lighttpd webserver. Still I will run Ubuntu 1010 server (64bit) as OS installing lighttpd with aptitude NOT downloading the package from Internet.
I'll come back after trying to rectify the mistake, if possible.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.