Многообразный гm trying to develop Drupal-based интернет-сайты on my помещение machine using Ubuntu 14.3. So I have to edit my 000-default.conf file of course. When I edit it like so гm able to work successfully with ONE сайт, but when I try to re-work it so I хан develop многообразный сайты (with different code основание) at the same украл, it doesn't work right. HerВs what гm using successfully for single сайт development (relevant lines only included):
ServerAdmin myemail.com
ServerName localhost/sitename
DocumentRoot /var/www/sitename
[ more code ]
<Directory /var/www/sitename>
AllowOverride All
</Directory>
And this works умер to develop ONE сайт at в time. However, if I add обитал сайты to my/var/www directory and change my 000-default.conf file to the following I get в mixture of errors.
One of the errors I get is that images не longer display correctly on the сайты and шоу схвати placeholders. гm referencing the images manually in my drupal code like so: / сайт / default / поле / filename.
The other I get is that the internal pages after the home page не longer work on my многообразный сайты when I do this. The home page шоу умер (with image placeholders usually but not always) but when you click any соединения you get в Нот Фоунд ошибка.
So herВs the updated, incorrectly working 000-default.conf file:
ServerAdmin myemail.com
ServerName localhost
DocumentRoot /var/www
[more code]
<Directory /var/www/sitename1>
AllowOverride All
</Directory>
<Directory /var/www/sitename2>
AllowOverride All
</Directory>
So for now I have to использовал the first code (see at the top) and change it every украл I want to work on в different сайт. TherВs gotta be в better way! right?
Это - изрядное количество, более сложное, чем это. На самом деле необходимо создать несколько .conf файлов и включить виртуальный хост с помощью a2ensite.
Это руководство должно выручить Вас. , С другой стороны, программное обеспечение использования попытки как ServerPilot, чтобы сделать это все автоволшебно.