@LukeAlmighty Use nginx instead, it's 500x better and easier to use
Compare:
<VirtualHost *:80>
ServerName example.com
ServerAdmin admin@example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com/public_html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
server {
listen 80;
server_name example.com;
root /srv/http/;
location / {
try_files $uri $uri/;
}
}
@Zerglingman @LukeAlmighty You can cut out the two logging one's I guess. I haven't used apache for years and grabbed an example from online and an example from my nginx configs. I mainly just meant it as an example of the syntax
@pleb @LukeAlmighty I dislike the cli/json/caddyfile spread, otherwise seems fine
@applejack @pleb @Zerglingman
I have reached a web server on RPi from my phone. Enough for today, but is is a progress.
... In fact virtually everything in that is dishonest.
I do, however, recommend nginx. The syntax *is* nicer.