Displaying 20 results from an estimated 178 matches for "addhandler".
2009 Nov 14
4
php config security concern for c5
a recent post on bugtraq hilighted an issue with how upstream has
configured apache to invoke php, namely using addhandler, which has the
behavior of matching the extension anywhere in the file. this means
that foo.php.jpg will be run as php. where this becomes an issue is web
apps that allow uploads into the webspace for images, pdfs, etc. if the
app assumes that anything.jpg is safe, this addhandler feature wi...
2006 Apr 14
3
Rails deployment
Hi all,
I''ve greated a rails application and i want to deploy it right now.
I have to use a windows 2003 server.. So i installed
i''ve used the following tutorial:
http://wiki.rubyonrails.com/rails/pages/RailsOnWindows
My application is running at : http://loc.iwsweb.nl
But everytime i connect it opens a ruby process but at the end it won''t
kill it.
As you can see
2006 Aug 13
1
Rewrite problem?
...s is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file looks like
---------------------------------------------------------------------
# General Apache options
AddHandler fastcgi-script .fcgi
#AddHandler fcgid-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
# If you don''t want Rails to look in certain directories,
# use the following rewrite rules so that Apache won''t rewrite certain
requests
#
# Example:
# RewriteCond...
2006 Feb 01
3
Configure Apache 2.0.55 and FastCGI
...I have this config under httpd.conf
------------------------
LoadModule fastcgi_module modules/mod_fastcgi.dll
...
Alias /fatturails/ "C:/Programmi/Apache
Group/Apache2/htdocs/fatturails/public/"
<Directory "C:/Programmi/Apache Group/Apache2/htdocs/fatturails/public">
AddHandler fastcgi-script .fcgi
Options +ExecCGI
AllowOverride All
Allow from all
Order Allow,deny
</Directory>
FastCgiServer "C:/Programmi/Apache
Group/Apache2/htdocs/fatturails/public/dispatch.fcgi" -processes 1
-------------------------
Then in my .htaccess i have this code
------...
2006 Aug 16
3
problems with fastcgi, apache2 and debian sarge
...www/gissmoh.de/public
CustomLog /var/log/apache2/gissmoh.de/access.log
combined
SetEnv RAILS_ENV production
SuexecUserGroup gissmoh gissmoh
<Directory /var/www/gissmoh.de/public/>
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</virtualhost>
production.log:
/log# tail -f production.log
/usr/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controller/cgi_process.rb:112:in...
2007 May 17
3
Ubuntu rails server
....
We''ve been notified about this issue and we''ll take a look at it
shortly.
Here are my installed app versions:
root@otpsrv:~# ruby -v
ruby 1.8.5 (2006-08-25) [i486-linux]
root@otpsrv:~# rails -v
Rails 1.2.3
root@otpsrv:~# gem -v
0.9.3
and my conf are:
in .htaccess i have modify
AddHandler fcgid-script .fcgi
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
in apache conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName test
DocumentRoot /var/www/test/public
ErrorLog /var/www/test/log/apache.log
<Directory /var/www/test/public/&...
2006 Feb 19
8
uninitialized constant RailsFCGIHandler
Hello, I''m trying to switch to FastCGI.
With CGI everything works, but after have done all the steps of the wiki
here
(http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntuDebianTestingAndUnstable)
My application started to give me "Error 500"
Looking at the Apache logs I can see :
[notice] mod_fcgid: server /rails/public/dispatch.fcgi(6127) started
2006 May 11
5
Problem running application in cpanel
Hi,
I installed rails following the instruccions from
http://wiki.rubyonrails.com/rails/pages/HowtoInstallAndRunRubyOnRailsOnCpanel
but when i try see the application i have a 500 Internal Server Error, this
is only with apache because i can run with webrick
Please i am desesperate
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 30
1
running in production mode
...on? The app always runs under development mode i.e
ignores the RAILS_ENV directive.
thanks/ thila.
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
FastCgiServer /app.......dir/public/dispatch.fcgi \
-initial-env RAILS_ENV=production \
-processes 4 -idle-timeout 180
AddHandler fastcgi-script .fcgi
</IfModule>
..
.
.
.
<VirtualHost 192.168.1.10>
ServerName www.myurl.com
ServerAlias myurl.com
DocumentRoot /app...dir/public/
<Directory /app..dir/public/ >
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Al...
2006 Jan 03
2
Apache FCGI and rails image issues help
...a rooting error i agree no prob this is my apache config
as in the vhost
<VirtualHost *>
ServerName rails
DocumentRoot "c:/rails/wine/"
<Directory "c:/rails/wine/public/">
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
</Directory>
</VirtualHost>
my app is in a folder C:\rails\wine
i can access it no prob using http://localhost/public/wine/show/1
as in the controller wine etc as this is pointing at the public folder
1st if i change the directory a...
2005 Sep 28
2
fastcgi timeout settings
...FastCGI: comm with (dynamic) server
"D:/projects/MojAlbum/public/dispatch.fcgi" aborted: (first read) idle
timeout (30 sec), referer: http://mojalbum.4dva.hr/albumi/moji
I tried to set timeout in apache conf by:
<IfModule>
FastCgiConfig -killInterval 900 -idle-timeout 900
AddHandler fastcgi-script .fcgi
</IfModule>
but nothing changes.
What I,m missing?
Where could I set fastcgi timeout to be a little longer?
Thanks,
Igor
2006 Mar 04
4
managing number of dispatch.fcgi processes ?
I have a problem where when I try and access my site a dispatch.fcgi
process is started but then exits right after the page has loaded.
Requireing it to start all over agin the next time a request is made.
I''ve read about people using two or more FCGI processes to help with the
request load but how do people do this?
Firstly, how do you make a FCGI process persistant? I''m
2006 Jun 15
12
RoR on Apache2
...Anyway, the debug information is below that I believe is pertinent.
Any thoughts? Thanks.
-Chad
Ubuntu 6.06, Apache/2.0.55 (Ubuntu) PHP/5.1.2, ruby 1.8.4 (2005-12-24)
[i486-linux], Rails 1.1.2
The app is located at /home/crvoelker/src/ToDo/
---start segment---- /etc/apache2/apache2.conf
...
#AddHandler cgi-script .cgi
AddHandler fcgid-script .fcgi
...
Alias /ToDo/ "/home/crvoelker/src/ToDo/public/"
<Directory "/home/crvoelker/src/ToDo/public/">
Options Indexes MultiViews ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AddHandler fcgid-script .f...
2007 Nov 30
2
make sortable divs and innerHTML
My problem is that elements that were included in my site with
innerHTML can´t be sortable because the DOM doesn´t know that these
elements are there.
Has anybody a solution or an idea to this problem?
ToM
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group,
2006 Jan 19
5
RoR still not working on SuSE 9.0 - incomplete headers received
...ailed to start properly
And this is log:
fastcgi.crash.log:
[16/Jan/2006:23:47:02 :: 977] starting
[16/Jan/2006:23:47:03 :: 977] terminated gracefully
apache.log:
development.log is empty.
This is my virtual host entry of apache:
<VirtualHost myIP:80>
ServerName myHost
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
DocumentRoot /srv/www/htdocs/web4/html/rails/public
SuexecUserGroup web4 ftponly
FastCgiWrapper /usr/sbin/suexec2
<Directory /srv/www/htdocs/web4/html/rails/public>
RewriteEngine On...
2006 Nov 09
0
Apache configuration
.../
5. find /var/www/rails/cookbook/ -type d -exec chmod g+x {} \;
Configure Apache
1. vi /etc/httpd/conf.d/fcgid.conf
Insert the following:
LoadModule fcgid_module /usr/lib/httpd/modules/mod_fcgid.so
<IfModule mod_fcgid.c>
SocketPath /tmp/fcgid_sock/
AddHandler fcgid-script .fcgi
</IfModule>
1. vi /etc/httpd/conf.d/hosts.conf
(Personally, I put all my custom Apache configuration in this file
to keep things organized)
Insert the following:
<VirtualHost *:80>
SetEnv RAILS_ENV development
ServerName d...
2009 Jun 17
2
Using a cgi perl program?
...ing:
The page you were looking for doesn''t exist.
You may have mistyped the address or the page may have moved.
I load the program to the cgi-bin directory in its own folder /cgi-bin/
fump/
In the /public folder of my app I have the following .htaccess file:
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .pl .cgi
Options +FollowSymLinks +ExecCGI
# If you don''t want Rails to look in certain directories,
# use the following rewrite rules so that Apache won''t rewrite certain
requests
#
# Example:
# RewriteCond %{REQUEST_URI} ^/notrails.*...
2007 Dec 21
2
config Rails .htaccess
Hello, newbie here please help
I have developed my Rails site under www.mydomain.com/home
Now I want to map it to use www.mydomain.com, what should i change to
this .htaccess file
=============== Content of my .htaccess file under public directory
============
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
# If you don''t want Rails to look in certain directories,
# use the following rewrite rules so that Apache won''t rewrite certain
requests
#
# Example:
# RewriteCond %{REQUEST_URI} ^/notrails.*
#...
2006 Feb 14
9
Deploying in Dreamhost
...t</a></p>
which gives me a file not found/400 error. I have already checked all
the files as far as permission (done a recursive chmod 755 on app/) and
the shebang. So about the only thing I can think of is that my
.htaccess is not correct. Here is the contents of my .htaccess:
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error<...
2006 Feb 13
4
Problems deploying in Dreamhost
I am trying to deploy a Rails application on Dreamhost. My application
works just fine in my laptop using WEBrick. The problem that I have is
that I currently have my website in the public folder. I can reference
everything just fine from if it is in the public folder, but if I click
in a link that is an actual controller/action I get an error that the
file does not exist. I followed all