Hardware: Old laptop or compute
YunoHost version: 11.1.11.2 (stable).
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen | …
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
Description of my issue
Hello,
finished installing my Yunohost server. Used Peertube/RoundCube/PhpMyAdmin and MY_Webapp (for personal website) everything on a subdomain, except the “my webapp”
All Apps “work” (i think) , Roundcube and Phpmyadmin redirect to the login page of the yunohost instance, if you are not logged in, if you are logged, they work normally. They shouldn’t do that, right?.
Peertube “works” with the domain mydomain.name.online but not with www.mydomain.name.online , probably i need to add a WWW CNAME to the DNS, but for the toplevel domain only like this mydomain.online correct?. it displays video an all if accessed with the name without the www, but not if the user input that, same for the other apps.
Big problem is with the my_webapp. i logged on with SSH and uploaded all files, and on PhPmyadmin i imported the old db (changed configs in the files for auth with db) , but if i visit my website mydomain.com (yes, i choose it as a root), it displays error .htaccess file not found, but i see it in Filezilla, and, if i check other files, they are accessible, except the .htaccess.
Since apache is not supported, how should i fix this problem?, i am a total newbie, i just try and try until it works… If you know the answer, explain it to me like a toddler
PART 2
The custom web app is a laravel app, i already moved all the files to the www folder, and imported the old database. the only error i get his “.htaccess file not found”.
website in question is streampredator.online . other subdomains like cinema.streampredator.online work perfectly, so, probably is some nginx configuration i need to do?.
on the script’s developer website i found out this, how i should change that, and where should i write it to make everything work? (possibly?)
Nginx Rules
If you are using nginx, you can use these rules. Just replace /domains/site.com with path to your site directory.
Important:
Make sure to point root to “public” subfolder and not main folder where files are uploaded, otherwise site will not work properly.
server {
listen 80 default_server;
server_name default;
root /domains/site.com/public;
index index.html index.htm index.php;
charset utf-8;
location ^~ /storage/ {
}
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; }
access_log off;
error_log /var/log/nginx/default-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}