Displaying 20 results from an estimated 45 matches for "script_filename".
2008 Oct 06
8
.htaccess rewrite
can someone help me with an .htaccess rewrite?
i''m trying to convert all requests to "/?spot=8888" to be "/locations/
888".
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2005 May 23
16
Success - Rails, FastCGI, and IIS / Windows Server
About 17:00 localtime I managed to get fastcgi,
Rails and IIS all happy together.
Upon success I ripped off my clothes and ran through
the village yelling "The future is now!". A PDP-11
geezer stuck his head out a window and said "The future
isn''t what it used to be and keep yer shirt on".
Modifications were required to dispatch.fcgi and request.rb.
The following
2006 Jul 25
4
about PATH_INFO and FastCGI
...I add .to_s to PATH_INFO in camping code.
actually, this is probably very wrong. the problem is probably something
like PATH_INFO does not exist when using FastCGI.
I have not done all my homework, but so far what I found is lighttpd has a
special option
"broken-scriptfilename": breaks SCRIPT_FILENAME in a wat that PHP can
extract PATH_INFO from it (default: disabled)
which seems to do what we need. maybe there is an equivalent in Apache, or
Camping needs to cut PATH_INFO from SCRIPT_FILENAME.
also, I quickly saw a reference about FILEPATH_INFO, I''m not sure what is
the difference. or i...
2006 Oct 03
4
Apache Re-Write and Directories
...http://www.domain.com/static - then it does not work as it gets directed to
the cluster.
How can I change my rewrite rules to have both of the above URLs be served
by the static resource via Apache, not by Mongrel?
Rewrite rules:
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /maintenance.html [L]
# Rewrite index to check for static index.html
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached pages with .html extentions
RewriteRule ^([^.]+)$ $1.html [QSA]
# All dynamic requests get sent to the cluster...
2014 Oct 29
3
Right way to install phpMyAdmin through Nginx and PHP-FPM
...libs) {
deny all;
return 404;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $root$fastcgi_script_name;
}
access_log /var/log/nginx/phpmyadmin/access.log;
error_log /var/log/nginx/phpmyadmin/error.log;
}
But any time I restart Nginx service I got this error:
nginx: [emerg] unknown "root" variable
nginx: conf...
2007 Jun 03
6
mongrel cluster w/ apache
...Links
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
RewriteLog logs/weposs_rewrite_log
RewriteLogLevel 9
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROO...
2007 Jun 03
3
mongrel cluster w/ apache
...FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
RewriteLog logs/weposs_rewrite_log
RewriteLogLevel 9
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{RE...
2007 Feb 07
0
Trailing Slash Problems with Deployment on Shared Hosting Using SymLinks
...tried the
suggestions there, and they allowed the app to load without the
trailing slash, but when the slash was on the URL it resulted in a 400
error.
Has anyone had success with similar problems?
Here''s my .htaccess file:
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} -d
RewriteCond %{SCRIPT_FILENAME} ^.*[^\/]$
RewriteRule ^(.*)$ $1/ [N]
RewriteBase /photos
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.cgi?$1 [QSA,L
--~--~---------~--~----~------------~-------~--~...
2008 Jan 23
7
Apache, Mongrel, Authentication
...erFile /www/mysite/users/userdb
Require valid-user
</Directory>
RewriteEngine On
# Check for maintenance file and redirect all requests
# ( this is for use with Capistrano''s disable_web task )
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_R...
2007 Jan 25
6
NOT FOUND error
...r allow,deny
Allow from all
</Directory>
RewriteEngine On
# Uncomment for rewrite debugging
#RewriteLog logs/myapp_rewrite_log
#RewriteLogLevel 9
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_R...
2007 Nov 22
4
reg vhost in apache
...uot;>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
Rewri...
2007 Jan 17
2
mongrel cluster (+ Apache 2.2.4 + proxy balancer) not redirecting correctly
...ory>
<Proxy balancer://mongrel_cluster>
BalancerMember http://127.0.0.1:3000
BalancerMember http://127.0.0.1:3001
</Proxy>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^/$ /index.html [QSA]
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://mongrel_cluster%{REQUEST_URI}
[P,QSA,L]
CustomLog logs/desq-access.log common
ErrorLog logs/desq-error.log
SSL...
2008 Jan 08
0
4 commits - configure.ac test/compiler.c test/.gitignore test/Makefile.am test/swfdec_test.c test/swfdec_test_function.c test/swfdec_test_function.h test/swfdec_test_global.c test/swfdec_test_initialize.as test/swfdec_test_initialize.h
...(ctx, &argc, &argv, &error);
@@ -95,12 +103,6 @@ main (int argc, char **argv)
return EXIT_FAILURE;
}
- if (argc < 2) {
- g_printerr ("ERROR: Usage: %s [OPTIONS] filename\n", argv[0]);
- return EXIT_FAILURE;
- }
-
- swfdec_init ();
script = load_script (script_filename);
g_free (script_filename);
if (script == NULL)
@@ -117,9 +119,22 @@ main (int argc, char **argv)
g_print ("ERROR: Not enough memory");
return EXIT_FAILURE;
}
- for (i = 1; i < argc; i++) {
- SWFDEC_AS_VALUE_SET_STRING (&val, swfdec_as_context_get_string (con...
2007 Jan 02
2
problem with mongrel/apache2.2.3 and subdomain setup
...:8001
</Proxy>
RewriteEngine On
# Prevent access to .svn directories
RewriteRule ^(.*/)?\.svn/ - [F,L]
ErrorDocument 403 "Access Forbidden"
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_R...
2004 Aug 24
1
error when unsubscribe (PR#7198)
...ER_I_DN_O ETH Zurich
SERVER_ADDR 129.132.148.136
DOCUMENT_ROOT /var/www/vhosts/sfs/htdocs
SSL_SERVER_S_DN_OU Seminar for Statistics
SERVER_PORT 443
SSL_SERVER_I_DN_Email webmaster@math.ethz.ch
SSL_VERSION_LIBRARY OpenSSL/0.9.7a
PYTHONPATH /scratch/local/app/mailman-sfs/2.1.5
SCRIPT_FILENAME /var/www/vhosts/sfs/mailman/options
SERVER_ADMIN webmaster@math.ethz.ch
SCRIPT_URI https://stat.ethz.ch/mailman/options/r-help
SSL_SERVER_A_SIG md5WithRSAEncryption
SSL_SERVER_S_DN_L Zurich
HTTP_HOST stat.ethz.ch
SCRIPT_URL /mailman/options/r-help
HTTPS on
SSL_SERVER_I_DN_L...
2006 Dec 16
5
trying to add another app
...writeEngine On
# Make sure people go to www.myapp.com, not myapp.com
RewriteCond %{HTTP_HOST} ^app1.com$ [NC]
RewriteRule ^(.*)$ http://www.app1.com$1 [R=301,L]
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_R...
2007 Mar 29
0
Resolved problem with Apache Load Balancer Manager
...On
# Uncomment for rewrite debugging
#RewriteLog logs/myapp_rewrite_log
#RewriteLogLevel 9
# Check for maintenance file and redirect all requests
# ( this is for use with Capistrano''s disable_web task )
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_R...
2005 Jun 26
0
Bug in Mailman version 2.1.5
...ER_NAME lists.digium.com
REMOTE_ADDR 198.54.202.226
HTTP_VIA 1.1 ndf-cache2 (NetCache NetApp/5.5R6D36),
1.1 rba-cache1 (NetCache NetApp/5.5R6D27)
PATH_TRANSLATED /var/mailman/html/asterisk-users
SERVER_PORT 80
SERVER_ADDR 69.16.138.164
DOCUMENT_ROOT /var/mailman/html
PYTHONPATH /var/mailman
SCRIPT_FILENAME /var/mailman/cgi-bin/confirm
SERVER_ADMIN root@localhost
HTTP_HOST lists.digium.com
MAIL_CONFIG /etc/postfix2
REQUEST_URI /mailman/confirm/asterisk-users
HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
GATEWAY_INTERFACE CGI/1.1...
2006 Aug 25
0
nginx+fastcgi+rails
...on my wiki [
http://zh.stikipad.com/notes/show/nginx ].
And my question: have somebody working config for nginx+fastcgi+rails
(dispatch.fcgi)?
Something like:
-------------- >8 --------------
location / {
fastcgi_pass localhost:9000;
fastcgi_index dispatch.fcgi;
fastcgi_param SCRIPT_FILENAME /home/rails/public/$fastcgi_script_name;
}
-------------- >8 --------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-ta...
2006 Nov 13
1
Service Temporarily Unavailable when using apache
...y has much Google-Fu on
# www.blah.com. Feel free to comment this out.
# Uncomment for rewrite debugging
#RewriteLog logs/myapp_rewrite_log
#RewriteLogLevel 9
# Check for maintenance file and redirect all requests
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteCond %{SCRIPT_FILENAME} !maintenance.html
RewriteRule ^.*$ /system/maintenance.html [L]
# Rewrite index to check for static
RewriteRule ^/$ /index.html [QSA]
# Rewrite to check for Rails cached page
RewriteRule ^([^.]+)$ $1.html [QSA]
# Redirect all non-static requests to cluster
RewriteCond %{DOCUMENT_R...