Skip to content

Commit 906b76e

Browse files
authored
Add Apache2 conf example
I'm not sure if this is 100% accurate but I got help setting up an Apache2 vhost from a Discord member and thought it would be useful to take what they helped me with and use it as an example in the docs. Consider it a starting point for this, I'm sure a revision might be needed.
1 parent 83a8082 commit 906b76e

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)