r-o-b-o-t-o / azerothcore-armory

A website to view your AzerothCore server's characters
MIT License
49 stars 24 forks source link

errors #28

Closed geekygreek7 closed 8 months ago

geekygreek7 commented 2 years ago

Your question

Getting the following output in logs when trying to visit the site:

[2022-09-23 18:18:07:187] [INFO]: Loading config... [2022-09-23 18:18:07:187] [INFO]: Loading data files... [2022-09-23 18:18:13:1813] [INFO]: Connecting to databases... [2022-09-23 18:18:13:1813] [INFO]: Starting server... [2022-09-23 18:18:16:1816] [INFO]: Server is listening on 0.0.0.0:48733. [2022-09-23 18:18:29:1829] [HTTP]: GET / 304 - ID 5f1bfbfe-f63e-4808-891e-fab6c65887d8 - IP xxx.xx.xx.xxx - 55.572 ms [2022-09-23 18:18:29:1829] [HTTP]: GET /azerothcore-armory/css/bulma.min.css 404 - ID 4bada3d3-e5da-496d-865c-3ec6ac42cf89 - IP xxx.xx.xx.xxx - 5.857 ms [2022-09-23 18:18:29:1829] [HTTP]: GET /azerothcore-armory/css/armory.css 404 - ID a2d088c7-9529-45fd-9e41-638d2469b24d - IP xxx.xx.xx.xxx - 5.470 ms [2022-09-23 18:18:29:1829] [HTTP]: GET /azerothcore-armory/css/index.css 404 - ID 6a644685-d5f8-40a0-911f-e485d0e6172d - IP xxx.xx.xx.xxx - 10.912 ms [2022-09-23 18:18:29:1829] [HTTP]: GET /azerothcore-armory/css/datatables.css 404 - ID 15c9a186-dca5-44c2-b59e-cac7351a4ec4 - IP xxx.xx.xx.xxx - 11.546 ms [2022-09-23 18:18:29:1829] [HTTP]: GET /azerothcore-armory/search?draw=1&columns%5B0%5D%5Bdata%5D=0&columns%5B0%5D%5Bname%5D=&columns%5B0%5D%5Bsearchable%5D=true&columns%5B0%5D%5Borderable%5D=true&columns%5B0%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B0%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B1%5D%5Bdata%5D=1&columns%5B1%5D%5Bname%5D=&columns%5B1%5D%5Bsearchable%5D=true&columns%5B1%5D%5Borderable%5D=true&columns%5B1%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B1%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B2%5D%5Bdata%5D=2&columns%5B2%5D%5Bname%5D=&columns%5B2%5D%5Bsearchable%5D=true&columns%5B2%5D%5Borderable%5D=true&columns%5B2%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B2%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B3%5D%5Bdata%5D=3&columns%5B3%5D%5Bname%5D=&columns%5B3%5D%5Bsearchable%5D=false&columns%5B3%5D%5Borderable%5D=true&columns%5B3%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B3%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B4%5D%5Bdata%5D=4&columns%5B4%5D%5Bname%5D=&columns%5B4%5D%5Bsearchable%5D=false&columns%5B4%5D%5Borderable%5D=true&columns%5B4%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B4%5D%5Bsearch%5D%5Bregex%5D=false&columns%5B5%5D%5Bdata%5D=5&columns%5B5%5D%5Bname%5D=&columns%5B5%5D%5Bsearchable%5D=false&columns%5B5%5D%5Borderable%5D=true&columns%5B5%5D%5Bsearch%5D%5Bvalue%5D=&columns%5B5%5D%5Bsearch%5D%5Bregex%5D=false&order%5B0%5D%5Bcolumn%5D=0&order%5B0%5D%5Bdir%5D=asc&start=0&length=10&search%5Bvalue%5D=&search%5Bregex%5D=false&_=1663971508557 404 - ID 8416e3ab-fbac-4db6-8225-42e83c59f1be - IP xxx.xx.xx.xxx - 8.756 ms

If I load the page, it loads a white screen and tries to load the armory but the page pops up with this error: DataTables warning: table id=results - Ajax error. For more information about this error, please see http://datatables.net/tn/7

r-o-b-o-t-o commented 2 years ago

Hi, What did you set websiteRoot to in your config file? You might want to leave it to an empty string ("") unless you need it for a specific setup.

geekygreek7 commented 2 years ago

change it to "" and it worked. Thank you!

Side question: If I try to reverse proxy and give it a subdomain, where should I be pointing it?

<VirtualHost *:80>
    ServerName subdomain.domain.com
    DocumentRoot /var/www/html/azerothcore-armory
</VirtualHost>
r-o-b-o-t-o commented 2 years ago

You need it to point at the port it's running on, not the containing folder. So something like this:

<VirtualHost *:80>
    ServerName subdomain.domain.com
    ProxyRequests Off
    ProxyPreserveHost On
    ProxyPass / http://localhost:48733/
    ProxyPassReverse / http://localhost:48733/
</VirtualHost>