Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
Ive finally figured out how to get MyAAC installed with my server but none of the pages work? Is this a barebones application? I assumed it would have an account creation page. Searching online yields no results. No pages load past the default landing page, like the create account page. Is this expected?
Anyone able to guide me through this? I know I did something wrong somewhere, my installation was correct, the ony things that didn't load were monsters.xml and a couple of other things like houses and weapons. Still can't figure out why I can't create a simple account through the website
And the error is 404 not found with nginx/1.24.0 (ubunto) underneath it
Post automatically merged:
I Think I deleted the initial email account it had me create when I finished the install. Would that cause an issue? I can still login to the admin page just fine
Ok, found the folder, no default file inside though.
So for
LUA:
server_name your domain.com;
it should be something like
Code:
canary 127.0.01;
? I dont have a domain set up yet, just the host IP
Post automatically merged:
Im sorry I was trying to find it using winSCP which is why it wasnt showing. I can edit the file using sudo nano but Im confused why it doesnt exist in that folder anymore using the file explorer, doesnt seem right, but its there and I was able to double check it
Post automatically merged:
I rechecked everything, made sure php was set to the correct version, added my servers IP after server_name your domain.com; reloaded nginx. Again the website will load, but all pages lead to 404 still.
Post automatically merged:
Im definitely not editing the conf file correctly, could you provide a real example of what the default file should look like in sites-enabled as well as the default file in sites-available?
I figured it out, I could have sworn my php version was 8.3 but it was 8.2. I checked the error log and it was trying to find the php8.3-fpm.sock so i checked run/php and it was 8.2. Not sure how i ended up doing that. I apologize for the run around. I can still post my configs up if you dont mind cross checking them and making sure Im not missing anything vital. The website works now and I was able to create a test account.
Post automatically merged:
My sites-enabled/default
I put 127.0.0.1 here instead of my IP just to keep my IP masked here
Code:
server {
listen 80;
root /var/www/html;
index index.php;
server_name 127.0.0.1;
# increase max file upload
client_max_body_size 10M;
# this is very important, be sure its in your nginx conf - it prevents access to logs etc.
location ~ /system {
deny all;
}
# block .htaccess, CHANGELOG.md, composer.json etc.
# this is to prevent finding software versions
location ~\.(ht|md|json|dist|sql)$ {
deny all;
}
# block git files and folders
location ~ /\.git {
deny all;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_read_timeout 240;
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
# for ubuntu 22.04+ it will be php8.1-fpm.sock
}
}
My sites-available/default
Code:
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
#
# This file will automatically load configuration files provided by other
# applications, such as Drupal or Wordpress. These applications will be made
# available underneath a path with that package name, such as /drupal8.
#
# Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
##
# Default server configuration
#
server {
listen 80 default_server;
listen [::]:80 default_server;
# SSL configuration
#
# listen 443 ssl default_server;
# listen [::]:443 ssl default_server;
#
# Note: You should disable gzip for SSL traffic.
# See: https://bugs.debian.org/773332
#
# Read up on ssl_ciphers to ensure a secure configuration.
# See: https://bugs.debian.org/765782
#
# Self signed certs generated by the ssl-cert package
# Don't use them in a production server!
#
# include snippets/snakeoil.conf;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.php index.html index.htm index.nginx-debian.html;
server_name 127.0.0.1;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
# pass PHP scripts to FastCGI server
#
location ~ \.php$ {
include snippets/fastcgi-php.conf;
#
# # With php-fpm (or other unix sockets):
fastcgi_pass unix:/run/php/php8.2-fpm.sock;
# # With php-cgi (or other tcp sockets):
# fastcgi_pass 127.0.0.1:9000;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
# Virtual Host configuration for example.com
#
# You can move that to a different file under sites-available/ and symlink that
# to sites-enabled/ to enable it.
#
#server {
# listen 80;
# listen [::]:80;
#
# server_name example.com;
#
# root /var/www/example.com;
# index index.html;
#
# location / {
# try_files $uri $uri/ =404;
# }
#}