Skip to content

Commit

Permalink
🚧 Adding sample vhost file for vhost templating
Browse files Browse the repository at this point in the history
  • Loading branch information
tchartron committed Jan 28, 2019
1 parent 72e63b6 commit 0d74f6d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/project.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
APP_NAME=example-app
APP_WEBSERVER=apache2
USER_FOLDER=/home/thomas
VHOST_FILENAME=005-example-app.conf
LOCAL_ADDRESS=example-app.work
DOCUMENT_ROOT=/var/www/example-app/public
APP_FOLDER=/home/thomas/www/example-app
APP_FOLDER_OWNER=thomas
APP_FOLDER_GROUP=thomas

20 changes: 20 additions & 0 deletions config/vhost/apache2/vhost-basic
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# /etc/apache2/sites-available/websitename.conf
<VirtualHost *:80>
ServerAdmin [email protected]

# Domaines gérés par ce virtualhost
ServerName uwithi.work
ServerAlias *.uwithi.work

# Racine Web
DocumentRoot /var/www/uwithi/public

# Règles spécifiques s&apos;appliquant à ce dossier
<Directory /var/www/uwithi/public>
Options +Indexes +FollowSymLinks
AllowOverride All
</Directory>
# Où placer les logs pour cette hôte
ErrorLog /home/thomas/dev/logs/www/uwithi-error.log
CustomLog /home/thomas/dev/logs/www/uwithi-access.log combined
</VirtualHost>

0 comments on commit 0d74f6d

Please sign in to comment.