Skip to content

Commit 39cfd17

Browse files
authored
Merge pull request #2 from LeviSnoot/main
Add Apache2 conf example
2 parents 6873f2a + 906b76e commit 39cfd17

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/getting-started/other-webservers.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,39 @@ allow all;
6767
}
6868
```
6969

70+
## Apache2
71+
72+
**This is just an example, we assume that you have prior experience setting up Apache Vhosts!**
73+
74+
**Access to configuration files is already denied via `.htaccess` files in the LinkStack root directory.**
75+
76+
<br>
77+
78+
```xml
79+
<VirtualHost *:80>
80+
ServerName example.com
81+
ServerAlias www.example.com
82+
ServerAdmin webmaster@localhost
83+
DocumentRoot /path/to/example.com
84+
DirectoryIndex index.htm index.html index.php
85+
ErrorLog /var/log/httpd/linkstack/error.log
86+
CustomLog /var/log/httpd/linkstack/access.log combined
87+
88+
<Directory />
89+
Options FollowSymLinks
90+
AllowOverride None
91+
</Directory>
92+
93+
<Directory /path/to/example.com/>
94+
Options -Indexes +MultiViews +FollowSymLinks +ExecCGI
95+
Require all granted
96+
AllowOverride all
97+
</Directory>
98+
</VirtualHost>
99+
```
100+
101+
Make sure to create log files for Apache before deployment, the path to apaches log directory may be different depending on factors like your distribution, so make sure to check where it is first.
102+
70103
## More webservers
71104

72105
Currently, no documentation is provided for other web server solutions.

0 commit comments

Comments
 (0)