YunoHost-Apps / zerobin_ynh

PrivateBin package for YunoHost
https://privatebin.info
GNU General Public License v3.0
11 stars 12 forks source link

Zerobin won't install itself at the root of a domain #7

Closed s0r00t closed 9 years ago

s0r00t commented 9 years ago

Test case : -Create a second domain (ex : bin.domain.tld) -Install Zerobin on it at root (/) -Go on the domain

Expected : Zerobin is at the root, like bin.domain.tld Results : Zerobin is at the root, but when going on bin.domain.tld, it tries to go into /zerobin folder, and so returns a 404.

Kloadut commented 9 years ago

Fixed as of 7c3c5fcec405c5c6446ff60f901454b86c8312a2

s0r00t commented 9 years ago

Thanks for the fast fix :+1:

s0r00t commented 9 years ago

Actually, still not fixed ;_;

Kloadut commented 9 years ago

Try to reinstall

s0r00t commented 9 years ago

I did, even a fresh install from the repo... Did not work :/

Kloadut commented 9 years ago

Ensure that NGinx is properly restarted and that yunohost app ssowatconf worked. It works by my side

s0r00t commented 9 years ago

Still doesn't after a nginx -s reload and a ssowatconf.

Kloadut commented 9 years ago

What is the content of /etc/nginx/conf.d/YOUR_DOMAIN.d/zerobin.conf ?

s0r00t commented 9 years ago

location / { alias /var/www/zerobin/ ; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } index index.php; try_files $uri $uri/ index.php; location ~ [^/].php(/|$) { fastcgi_split_path_info ^(.+?.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; fastcgi_param REMOTE_USER $remote_user; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $request_filename; }

Include SSOWAT user panel.

include conf.d/yunohost_panel.conf.inc; }

Kloadut commented 9 years ago

Looks OK. Your /etc/ssowat/conf.json ?

s0r00t commented 9 years ago

{ "additional_headers": { "Auth-User": "uid", "Email": "mail", "Name": "cn", "Remote-User": "uid" }, "domains": [ "courtial.me", "bin.courtial.me", "mail.courtial.me", "rss.courtial.me", "bag.courtial.me", "dav.courtial.me", "baikal.courtial.me" ], "portal_domain": "courtial.me", "portal_path": "/yunohost/sso/", "protected_regex": [], "protected_urls": [], "redirected_regex": { "courtial.me/yunohost[\/]?$": "https://courtial.me/yunohost/sso/" }, "redirected_urls": {}, "skipped_regex": [], "skipped_urls": [ "rss.courtial.me/public.php", "rss.courtial.me/api", "baikal.courtial.me", "/yunohost/admin", "/yunohost/api", "/yunohost/admin", "/yunohost/api", "/yunohost/admin", "/yunohost/api", "/yunohost/admin", "/yunohost/api", "/yunohost/admin", "/yunohost/api", "/yunohost/admin", "/yunohost/api", "/yunohost/admin", "/yunohost/api" ], "unprotected_regex": [], "unprotected_urls": [ "bin.courtial.me" ], "users": { "hugo": { "bag.courtial.me/": "Wallabag", "baikal.courtial.me/": "Baikal", "bin.courtial.me/": "Zerobin", "dav.courtial.me/": "AgenDAV", "mail.courtial.me/": "Roundcube", "rss.courtial.me/": "Tiny Tiny RSS" }, "thomas": { "bag.courtial.me/": "Wallabag", "baikal.courtial.me/": "Baikal", "bin.courtial.me/": "Zerobin", "dav.courtial.me/": "AgenDAV", "mail.courtial.me/": "Roundcube", "rss.courtial.me/": "Tiny Tiny RSS" }

Kloadut commented 9 years ago

Looks good as well...