Hello there!
I've just recently set up an nginx webserver after reading about it being better with resources than Apache.
Having experience with Apache before (my shared hosting uses Apache) working in the nginx environment is completely new to me o.O
I'm trying to install SpaceBukkit on my Linode for Minecraft Server management, and am struggling as to where to put:
Code:
location / {
index index.php /index.php;
rewrite (.*) /app/webroot$1 ;
}
location /app/ {
rewrite ^$ webroot/ ;
rewrite (.*) webroot$1 ;
}
location /app/webroot/ {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?$1 ;
}
index index.php /index.php;
}
Spacebukkit is located in a directory (sub.domain.tld/admin) of the server_name (sub.domain.tld) and adding /admin behind every tag doesn't seem to function and gives an error 500 code. How may I modify the above code to function in a directory?
Thanks!
EDIT: Also, I'd like it so that if users visit the site via another domain (such as domain.tld/minecraft/admin) they would be able to access the site with the rewrite rules applied.
It's like having a .htaccess in the directory, but since nginx doesn't support .htaccess... oh well
