#VPS

9 messages · Page 1 of 1 (latest)

brittle wren
radiant plume
# brittle wren Sounds like you might not have set up the server correctly. You'd need to point ...

does

    listen 80;
    listen [::]:80;
    server_name example.com;
    root /srv/example.com/public;

    add_header X-Frame-Options "SAMEORIGIN";
    add_header X-Content-Type-Options "nosniff";

    index index.php;

    charset utf-8;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    error_page 404 /index.php;

    location ~ ^/index\.php(/|$) {
        fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
        include fastcgi_params;
        fastcgi_hide_header X-Powered-By;
    }

    location ~ /\.(?!well-known).* {
        deny all;
    }
}```

need to go in ur .conf file in the VPS (Sorry never used a vps before) (inde etc/apache2/sites-enabled
brittle wren
#

Well no, that's an nginx config, not apache

radiant plume
#

ah yea i use apache, but nginx is better? for the database + laravel

or

radiant plume
brittle wren
#

Check what the pros and cons are for both of them, neither really is better.

radiant plume
brittle wren
#

Probably because you haven't configured a document_root in your apache config?

radiant plume