A
A
Andrey Smirnov2011-03-27 21:51:29
LAMP
Andrey Smirnov, 2011-03-27 21:51:29

denwer execution of LAMP on ubuntu 10.10

A question for professionals and just Ubuntu experts:

is it possible to somehow organize the automatic process of creating virtual hosts for the created folders?

That is, ideally, I have a webservers (main) folder, as soon as I create the% sitename% folder in it, and in it, say, the www folder, the host for this site is automatically (or by running the script), respectively, the necessary lines in /etc/hosts, and the site starts to be available (of course, after restarting Apache) at the link %sitename%?

Ideally, of course, one would also add such a thing that in the www folder of the parent folder %sitename% there are files of the root domain, and in other folders, for example, test, in the same folder %sitename% there are subdomain files, so that a site like test is obtained .%sitename%?

Do not judge strictly, but the implementation is just interesting

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jazzist, 2011-03-27
@Jazzist

There are, and a lot.
I wrote it for myself, just for a working lamp ubunta - whitepiano.ru/info/domains

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question