Displaying 20 results from an estimated 46 matches for "sethandler".
2018 Nov 30
1
Php script not running
Hi All, I have centos 7. Apache and php are installed.
CGI runs fine - php does not seem to run.
I have the /etc/httpd/conf.d/php.conf file
php.conf
#
# Cause the PHP interpreter to handle files with a .php extension.
#
<FilesMatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>
#
# Allow php to handle Multiviews
#
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php
#
# Uncomment the following lines to allow PHP to pretty-print .phps
# files as PH...
2006 Jun 04
4
eRuby & Rails: Not Compatible
...Order allow,deny
Allow from all
</Directory>
# If the ruby module is installed, this will be enabled.
<IfModule mod_ruby.c>
# for Apache::RubyRun
RubyRequire apache/ruby-run
# exec files under /ruby as ruby scripts.
<Location /srv/www/htdocs/bget.org/www>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
Options +ExecCGI
</Location>
# exec *.rbx as ruby scripts.
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
# exec *.rb as ruby scripts.
<Files *.rb>
SetHandl...
2014 Nov 04
2
Apache server-status file not found
...;/head><body>
<h1>Not Found</h1>
<p>The requested URL /server-status was not found on this server.</p>
</body></html>
Yet in the main apache httpd.conf file I have the following:
ExtendedStatus On
#Mod_status config
<Location /server-status>
SetHandler server-status
Order allow,deny
Allow from all
</Location>
I'm planning on tightening this up with allowing only from certain IPs once
I get this working.
But does anyone have any idea why this could be failing?
Thanks
Tim
--
GPG me!!
gpg --keyserver pool.sks-keyservers.net...
2007 Mar 29
0
Resolved problem with Apache Load Balancer Manager
...{REQUEST_URI} [P,QSA,L]
to
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !/balancer
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI} [P,QSA,L]
I also added:
<Location /balancer-manager>
SetHandler balancer-manager
Allow from localhost
</Location>
To my virtualhost for my rails app.
Full Config:
<VirtualHost *:80>
DocumentRoot PATH_TO_MY_APP/public
<Directory "PATH_TO_MY_APP/public">
Options FollowSymLinks
AllowOverride None
Order allow,den...
2008 Sep 04
1
actionmailer sends from commandline but not from web
...-------------------------
I''m running Apache 2.2, and this is what my ruby.conf file for it looks
like:
-------------------------
LoadModule ruby_module modules/mod_ruby.so
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
RubyRequire apache/eruby-run
<Files *.rb>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
<Files *.erb>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
-------------------------
ExecCGI in enabled as well.
Any ideas?
--
Posted via http://www.ruby-forum...
2006 Mar 22
8
Premature end of script headers: dispatch.cgi
Hi
I am running ruby 1.8.4 and rails 1.0.0 with Apache 2. I made a simple
rails application called demo and also created a controller called say
and an action called hello which is working fine using webrick. To run
it under Apache I created a symlink demo1 which is linked to the
demo/public directory. If I run it using www.example.com/demo1 then I
get the "Rails- Welcome Aboard"
2006 Jun 30
2
Eruby.import -> "uninitialized constant" error
...from :0
6) here''s the relavent section in my httpd.conf:
LoadModule ruby_module /usr/lib/httpd/modules/mod_ruby.so
# ClearModuleList
# AddModule mod_ruby.c
<IfModule mod_ruby.c>
RubyRequire apache/ruby-run
# Execute *.rbx files as Ruby scripts
<Files *.rbx>
SetHandler ruby-object
RubyHandler Apache::RubyRun.instance
</Files>
RubyRequire apache/eruby-run
# Handle *.rhtml files as eRuby files
<Files *.rhtml>
SetHandler ruby-object
RubyHandler Apache::ERubyRun.instance
</Files>
</IfModule>
#AddType application/x-httpd-erub...
2017 Nov 09
2
Draft review request (php7 on CentOS) [Was: Documentation proposal]
...owto also works on CentOS 6 using the
backported mod_proxy_fcgi available in EPEL.
BTW, the ProxyPass way have some caveats, especially as it is evaluated
early in the request, so before redirect, index, right, htaccess... and
thus, can raise some surprising behaviorts
So I usually recommends the SetHandler way, as httpd 2.4 in base CentOS
7 repository have all the backports needed to use it, and will work
closely of mod_php.
On the same time I was working on a similar article (mostly updating and
merging all the old blog articles from my blog)
The result have been recently published
https://develop...
2006 Feb 03
2
Infinite loop running Mod_R/Rapache
...o the specifications, and have been trying
to get the demo script to work correctly. I am running debian, the
latest build of R, apache 2 with prefork mpm, and the latest mod_r. Is
anyone else using this module successfully? I added:
LoadModule R_module mod_R.so
<Location /test/hello>
SetHandler r-handler
Rsource /var/www/html/test.R
RreqHandler handler
</Location>
to my http.conf and
test.R in /var/www/html is:
handler<-function(r){
apache.write(r,"<h1>Hello World!</h1>")
OK
}
When I start apache2, my /tmp directory fills with rtmp directorie...
2006 Jul 25
3
problem with *.foobar.com urls
...yPass / balancer://mongrel_cluster/
14 # ProxyPassReverse / balancer://mongrel_cluster/
15 # ErrorLog /usr/local/apache2/logs/mon.log
16 # CustomLog /var/log/apache/apache_access_log combined
17 </VirtualHost>
18
19 <Location /balancer-manager>
20 SetHandler balancer-manager
21 </Location>
Now, i get pages for foobar.com allright, but if i try to view pages for
us.foobar.com, i get <b>Forbidden</b> Error.
Though, when i manually enter, http://us.foobar.com:9001, then i get
corrpesponding page for that country allright.
So, my...
2005 Mar 23
1
mod_ntlm_winbind authentication issues
..._sp2_rtm.040803-2158
The apache virtual host definition:
<VirtualHost 10.1.1.249:80>
ServerName rt-test.elided.com
DocumentRoot /usr/local/rt3/share/html
AddDefaultCharset UTF-8
PerlModule Apache::DBI
PerlRequire /usr/local/rt3/bin/webmux.pl
<Location />
SetHandler perl-script
PerlHandler RT::Mason
AuthName "NTLM Authentication test"
NTLMAuth on
NTLMAuthHelper "/usr/local/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative on
AuthType NTLM
require valid-user
</Location&...
2014 Jun 10
1
apache server-status permission denied
Hey all,
I'm having a slightly weird issue with apache server-status on just one of
my nodes.
In my httpd.conf I have the following:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 10.10.160
</Location>
If I do a ps grep I know that I'm using the right config:
[root at webhosta apache2]# ps -ef | grep apache | grep -v grep | head -5
root 28359 1 0 21:38 ? 00:00:00 /o...
2019 Dec 09
4
PHP handler for .html files - C7
...t;/IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
</Files>
AddType text/html .php .htm .html
DirectoryIndex index.php
<IfModule mod_php7.c>
<FilesMatch \.(php|phar|htm|hml)$>
SetHandler application/x-httpd-php
</FilesMatch>
php_value session.save_handler "files"
php_value session.save_path "/var/lib/php/session"
php_value soap.wsdl_cache_dir "/var/lib/php/wsdlcache"
</IfModule>
I done some Googling and have found a num...
2006 Apr 13
4
apache permission problems
...OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>
</IfModule>
any ideas? any other info you need to help me out?
thanks
Nick
2006 Jul 24
7
Apache server-status?auto in rails
Just want to check the status of Apache monitor. but Apache
server-status?auto can not be explained as normal URL in rails.
For Http://localhost/server-status?auto, rails always regard
server-status as one controller/method. It prompts errot: Recognition
failed for "/server-status"
Therefore, can not get the status info of Apache monitor. Pls expert
help me!!! Thanks in advance.
2020 Oct 18
1
Lookup sid with libsmbclient (invoked from c# on mono)
Hi,
There is some additional work to do (close lsa handle), but the far the
code below is working.
Let me share it with you in case somebody will have the same need that me.
br
Vincent LE TOUX
using Microsoft.Win32.SafeHandles;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Net;
using System.Runtime.InteropServices;
using System.Security.Principal;
namespace
2008 Oct 11
5
Rails + Apache2 + Balancer Manager - PHP doesn't work
Hi
I have a Debian Server and I managed that Ruby works with Apache2 and
the Balancer Manager that listen to the Mongrel server.
The Problem is that PHP files don''t work anymore.
How do I have to configurate the Balance Manager that PHP is working
again like without the Balance Manager?
Greetings Andi
--
Posted via http://www.ruby-forum.com/.
2015 Aug 11
4
Apache mod_perl cross site scripting vulnerability
Hello,
I've failed latest PCI scan because of CVE-2009-0796. Centos 6.7. The
Red Hat Security Response Team has rated this issue as having moderate
security impact and bug as wontfix.
Explanation: The vulnerability affects non default configuration of
Apache HTTP web server, i.e cases, when access to Apache::Status and
Apache2::Status resources is explicitly allowed via <Location
2012 Jan 19
1
RApache installation problems
...ke install.
ยท Added this to my httpd.conf:
o LoadModule R_module /usr/lib/httpd/modules/mod_R.so
o
o # Output R errors and warnings to the browser
o ROutputErrors
o
o # Displays information about rapache and R
o <Location /RApacheInfo>
o SetHandler r-info
o </Location>
Also added the Directory directives but commented them when I was trying to get this to work. I figured if I couldn't see the r-info, nothing would work.
Then I navigated to /RApacheInfo on the machine and got an internal server error. The log says this:
[Th...
2017 Nov 09
0
Draft review request (php7 on CentOS) [Was: Documentation proposal]
...the
> backported mod_proxy_fcgi available in EPEL.
>
> BTW, the ProxyPass way have some caveats, especially as it is evaluated
> early in the request, so before redirect, index, right, htaccess... and
> thus, can raise some surprising behaviorts
>
> So I usually recommends the SetHandler way, as httpd 2.4 in base CentOS
> 7 repository have all the backports needed to use it, and will work
> closely of mod_php.
>
> On the same time I was working on a similar article (mostly updating and
> merging all the old blog articles from my blog)
>
> The result have been r...