My plans for RPi:
1) install Apache and learn how to use a web server
2) Install a game server (any recomendations for a low performance game to test this with?)
3) Try some no-public IP service.
4) Setup the web server in such a way to allow control of the RPi.
Any other recomendations on what should I do with this junk?
@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
Also today's discovery: apache's listen directives can go in global space, so although you have to *:80 for every block (and *:443 for every ssl block - I wonder if you can combine them), you don't have to do ip6 separately every time, unlike nginx:
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
(Which does only allow it in server block, sad.)