#Request failed with status code 404

29 messages · Page 1 of 1 (latest)

past lynx
#

I've finished my setup for the pterodactyl dashboard.
Now I'm getting this Error.
In the devtools i saw that a cookie is missing.

steady marten
#

Based on my testing, there is something wrong with your apache configuration. Make sure you used the templated provided in the docs

foggy spearBOT
past lynx
#

i did, here it is:

<VirtualHost *:80>
    ServerName panel.umidy.net
    DocumentRoot /var/www/html/panel/public

    AllowEncodedSlashes On

    <Directory /var/www/html/panel/public>
        AllowOverride None
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/pterodactyl_error.log
    CustomLog ${APACHE_LOG_DIR}/pterodactyl_access.log combined

    <FilesMatch ".+\.ph(?:ar|p|tml)$">
        SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost"
    </FilesMatch>
    
    <FilesMatch ".+\.phps$">
        Require all denied
    </FilesMatch>

    <FilesMatch "^\.ph(?:ar|p|ps|tml)$">
        Require all denied
    </FilesMatch>

</VirtualHost>

steady marten
#

Well that doesn't match the docs at all.

past lynx
#

yeah that bellow is for php-fpm

#

otherwise php wouldnt work

steady marten
#

You can't just make suff up and expect it to work

#

for starters, php 8.2 isn't supported. and the docs tell you that

#

but that's not the only change you've made

#

If you must make changes, at least start with the config from the docs

past lynx
#

I've removed php8.2 etc
And installed php8.1 with the code from the docs
but now the code is not getting executed

#

PHP 8.1.18 (cli) (built: May 17 2023 15:59:20) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.18, Copyright (c) Zend Technologies
with Zend OPcache v8.1.18, Copyright (c), by Zend Technologies
But php is definitely installed

steady marten
#

DId you install the php apache module ?

past lynx
#

I'm stupid.
Now i did.
But still not working with this conf :/

    ServerName panel.umidy.net
    DocumentRoot /var/www/html/panel/public

    AllowEncodedSlashes On

    <Directory /var/www/html/panel/public>
        AllowOverride None
        Require all granted
    </Directory>

</VirtualHost>
steady marten
#

If you refuse to follow the docs I can't really help you

past lynx
#
steady marten
past lynx
#
  ServerName <domain>
  DocumentRoot "/var/www/html/panel/public"
  
  AllowEncodedSlashes On
  
  php_value upload_max_filesize 100M
  php_value post_max_size 100M
  
  <Directory "/var/www/html/panel/public">
    AllowOverride all
    Require all granted
  </Directory>
</VirtualHost>```

Sorry for that.
Now its correct.
#

still not working after restart

#

no

#

im stupid

#

just saw the <domain> haha

#

somehow working anyways, but cannot be right xD

#

sso changed domain, but still the same weird 404 error

steady marten
#

Looks fine here. Clear browser cache/try another browser

past lynx
#

thx ❤️