Re: [users@httpd] protect apache to stop work if logdir is missing
On 9/9/19 12:13 PM, Anton Gorlov wrote: > 09.09.2019 19:07, @lbutlr пишет: >> On 9 Sep 2019, at 09:57, Anton Gorlov wrote: >>> I need the web server to continue working if the user has deleted the log >>> directory. >> I would solve this by preventing the user from deleting the directory or >> recreating it on deletion, not by patching the source code. >> >> > unfortunately I can’t prevent users from deleting directories Wait. You can't protect directories from your users but you can manually modify core programs that run on the server? What information is missing here? Hint: The log directories don't need to be in the user's home folder. You can put them in a protected area and just symlink to them. That way the user can blow away his own access to his logs but not the logs themselves. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] Re: Reditect HTTP to HTTPS .htaccess
On 03/04/2018 08:07 AM, LuKreme wrote: > I don't do this in .htaccess, I do it in > > >ServerName www.example.com >ServerAlias example.com >Redirect / https://www.example.com/ > > > But something like this should work in .htaccess as well: > > RewriteEngine On > RewriteCond %{SERVER_PORT} 80 > RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L] > > I think, perhaps based on nothing at all, that doing it in VirtualHosts works > better. Well, at the very least you only have to parse it once at startup. If you don't have a .htaccess file at all you also save an extra file open on every hit. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] mirror a html site
On 12/24/2017 12:54 PM, Jonathan Sélea wrote: > Offtopic, but why do is your email "miguel_3_gonza...@yahoo.es.INVALID"? The purpose is to lower his spam by making you do some work to to help him. In other words, he's making his spam problem your problem. At least it isn't as bad as making you go to a web page before it will accept your email. Things like this are why I usually reply to the list rather than to the sender or all. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] Trouble with Action directive
I am trying to get rid of the PHP module for various reasons. I tried adding the following directives in my .htaccess as a test. The idea is to eventually move that into httpd.conf. AddHandler phpweb .php Action phpweb /cgi-bin/phpweb The binary phpweb is a tine program that simply execs the real PHP web handler. I do that so that it runs the current version. It needs to be in my directory because of suExec. I have this in httpd.conf. ScriptAlias /cgi-bin/ MYWEBDIR/cgi-bin/ MYWEBDIR is replaced by my specific web directory. Each user has a VirtualHost section where that string is replaced with their web directory. Now I go to http://testing.fake/test.php. The fake domain is used by me for testing. If someone wants to test this I could put it into a real domain. The result is... The requested URL /cgi-bin/phpweb/test.php was not found on this server. The actual action should be to run /cgi-bin/phpweb with MYWEBDIR/test.php as the argument or as the standard input. What am I doing wrong here? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org