Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added documentation explaining use with nginx #4

Closed
fredefl opened this issue Apr 23, 2013 · 8 comments
Closed

Added documentation explaining use with nginx #4

fredefl opened this issue Apr 23, 2013 · 8 comments

Comments

@fredefl
Copy link

fredefl commented Apr 23, 2013

In order for it to work with nginx (because it of course don't use .htaccess) you have to add this to your locations in your configs (depending on where you store Raspcontrol).

rewrite ^/Raspcontrol/details$ /Raspcontrol/index.php?page=details last;
rewrite ^/Raspcontrol/logout$ /Raspcontrol/login.php?page=logout last;
@killou
Copy link

killou commented May 1, 2013

Hi !

And how make with lighthttpd ?

@fredefl
Copy link
Author

fredefl commented May 1, 2013

I honestly don't know.

@nicolabricot
Copy link
Owner

There is a little mistake in the last directive:

rewrite ^/Raspcontrol/logout$ /Raspcontrol/login.php?logout last;

@PeaceCopathe
Copy link

From http://xstyled.net/wordpress/2010/08/28/activer-lurl-rewriting-sur-lighttpd/
For Lighttpd:
Make a backup:
cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.bk

Activate mod_rewrite in /etc/lighttpd/lighttpd.conf
Uncomment "mod_rewrite"

add:
url.rewrite-once = (“^/Raspcontrol/details$” => "/Raspcontrol/?page=details″ , “^/Raspcontrol/logout$” => “/Raspcontrol/login.php?logout″ )

restart lighttpd
/etc/init.d/lighttpd restart

@nicolabricot
Copy link
Owner

Thanks @PeaceCopathe for the solution! There is only a little mistake for the logout rule:

url.rewrite-once = ("^/monitoring/details$" => "/monitoring/?page=details" ,
                    "^/monitoring/logout$"  => "/monitoring/login.php?logout" )

You have to remplace monitoring with the name of the folder where you stored Raspcontrol.

@PeaceCopathe
Copy link

yes I saw that after, I fixed it :)

@nicolabricot
Copy link
Owner

No problem!

@freakazoidz
Copy link

salut,

merci de m’avoir répondu, j’ai trouver d'où venais mon problème, juste une petite virgule que je n’avais pas vu

encore merci de t’être penché sur mon problème

De : Nicolas Devenet
Envoyé : ‎mercredi‎ ‎26‎ ‎mars‎ ‎2014 ‎14‎:‎40
À : nicolabricot/Raspcontrol
Cc : jael élisée

Salut

Le problème vient certainement du fait que Raspcontrol n'a pas les droits
pour écrire dans ce fichier. La solution serait de faire un "chmod -R 777
/etc/raspcontrol" pour que ça fonctionne.

Quelle version de Raspcontrol as-tu utilisé ? Je te conseille fortement
d'installer plutôt cette version
https://github.com/nicolabricot/Raspcontrol/archive/android.zip qui n'a
plus besoin de créer un tel fichier à cet endroit pour que ça fonctionne.
Il suffit que l'application ait les droits d'écriture sur le dossier dans
lequel elle est installée et c'est bon.

Est-ce que cela t'aide à résoudre ton problème ? Tiens moi au courant ;)

Nicolas Devenet

Le 26 mars 2014 14:28, freakazoidz notifications@github.com a écrit :

bonjour nicolabricot

j'ai installer lighttpd ainsi que raspcontrol, et lorsque je tente de
m'identifier sur la page d'acceuil
j'ai le message : Oups! Failed to open authentification file in
/etc/raspcontrol/database.aptmnt
biensur j'ai créer ce fichier et l'ai renseigné comme indiqué, aurais tu
une solution pour moi ?
j'ai chercher des solutions sur le net mais rien de concluant ...

Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-38682670
.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants