Emalawi19 commited on
Commit
3ab56e0
·
verified ·
1 Parent(s): 31050a5

Create config/apache.conf

Browse files
Files changed (1) hide show
  1. config/apache.conf +30 -0
config/apache.conf ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <VirtualHost *:80>
2
+ ServerName localhost
3
+
4
+ # ── Backend API ──────────────────────────────────────────────────────────
5
+ Alias /api /var/www/api
6
+ <Directory /var/www/api>
7
+ Options -Indexes +FollowSymLinks
8
+ AllowOverride All
9
+ Require all granted
10
+ </Directory>
11
+
12
+ # ── User websites ─────────────────────────────────────────────────────────
13
+ # Reads the X-Username header sent by your app to serve the right folder
14
+ UseCanonicalName Off
15
+ DocumentRoot /var/www/html
16
+
17
+ <Directory /data/sites>
18
+ Options -Indexes +FollowSymLinks
19
+ AllowOverride All
20
+ Require all granted
21
+ </Directory>
22
+
23
+ # ── Logging ───────────────────────────────────────────────────────────────
24
+ ErrorLog /data/logs/apache_error.log
25
+ CustomLog /data/logs/apache_access.log combined
26
+
27
+ # ── Security headers ──────────────────────────────────────────────────────
28
+ Header always set X-Content-Type-Options "nosniff"
29
+ Header always set X-Frame-Options "SAMEORIGIN"
30
+ </VirtualHost>