Displaying 20 results from an estimated 195 matches for "rewriteengin".
Did you mean:
rewriteengine
2007 Mar 25
3
Can''t seem to get rewrite rules to work with Apache
...4.219.19:80>
<Directory /u/apps/simplelog_2.0.2/public/>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
DirectoryIndex index.php index.html
</Directory>
ServerName scottwalter.com
DocumentRoot /u/apps/simplelog_2.0.2/public
SuexecUserGroup webadmin webadmin
RewriteEngine On
RewriteRule ^a\.html$ b.html
ProxyPass / http://127.0.0.1:3002/
ProxyPassReverse / http://127.0.0.1:3002/
ProxyPreserveHost on
ServerAlias "www.scottwalter.com"
ServerAdmin "support at scottwalter.com"
CustomLog "/u/apps/simplelog_2.0.2/log/access_log" "combin...
2006 Jul 20
5
Apache 2.2, Mongrel and #caches_page
...igure Apache. I just enabled
page caching in my Rails app, and am now looking at making Apache
serve the cached files instead of calling into Rails.
I know Mongrel is able to serve cached files if it finds them, but I''d
like Apache to do it.
Looking at .htaccess, there is this section:
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
The last line MUST change because I am proxying. What should it
change to is what I''m wondering. I tried:
RewriteRule ^(.*)$ balancer://s...
2009 Sep 17
1
[PATCH server] oVirt server single network installer
...d-single.conf.erb
diff --git a/conf/ovirt-server.conf b/conf/ovirt-server.conf
deleted file mode 100644
index e4ebd5b..0000000
--- a/conf/ovirt-server.conf
+++ /dev/null
@@ -1,88 +0,0 @@
-NameVirtualHost GuestNetIpAddress:80
-<VirtualHost GuestNetIpAddress:80>
- <Location /ovirt>
- RewriteEngine on
- RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
- </Location>
-</VirtualHost>
-
-NameVirtualHost GuestNetIpAddress:443
-NameVirtualHost AdminNetIpAddress:80
-
-<VirtualHost GuestNetIpAddress:443>
-
- NSSEngine on
- NSSCipherSuite +rsa_rc4_128_md5,+rsa_rc4_1...
2006 Dec 21
4
my apache 2.2 conf
...ErrorLog /var/www/logs/int.example.com/error.log
[...]
## Application Server
# APP1
<Proxy balancer://app1>
BalancerMember http://127.0.0.1:11001
</Proxy>
Alias /app1 /production/app1/public
<Directory /production/app1/public>
Allow from .example.com
RewriteEngine on
RewriteRule ^/?$ balancer://app1%{REQUEST_URI} [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . balancer://app1%{REQUEST_URI} [P,L]
</Directory>
# End APP1
# APP2
<Proxy balancer://app2>
BalancerMember http://127.0.0.1:11010
</Proxy>
Alias...
2009 Jun 17
2
Using a cgi perl program?
...EST_URI} ^/notrails.*
# RewriteRule .* - [L]
# Redirect all requests not available on the filesystem to Rails
# By default the cgi dispatcher is used which is very slow
#
# For better performance replace the dispatcher with the fastcgi one
#
# Example:
# RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
RewriteEngine On
# If your Rails application is accessed via an Alias directive,
# then you MUST also set the RewriteBase in this htaccess file.
#
# Example:
# Alias /myrailsapp /path/to/myrailsapp/public
# RewriteBase /myrailsapp
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
Rewrite...
2007 Nov 22
4
reg vhost in apache
...tisutra
ServerAlias sutrateam
ServerAlias sutrasrishti
DocumentRoot D:/project/sutra/public
<Directory "D:/project/sutra/public">
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 ^/$ /in...
2016 May 28
5
CentOS 6.8 Apache-2.2.15-53 re-write question
I was wondering if somebody could help me with an Apache re-write rule. Apparently CentOS 6.8 is running apache-2.2.15-53. I am trying
to redirect all pages except for two pages. The apache rewrite directives in the httpd config are:
RewriteEngine on
RewriteCond %{REQUEST_URI}!^/test/
RewriteCond %{REQUEST_URI}!^/my-folder/
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
These commands should cause all requests to get re-directed to www.newdomain.com except for those with a /test or /my-folder on the end of the
URL. However when I p...
2013 Mar 12
4
PuppetDB http web interface user access
Hi All,
Has anyone figured out a nice way to restrict user access to puppetdb''s
http web interface? Such as a .htaccess method or something similar? I
would prefer something along
those lines instead of setting up firewall rules.
-Zane
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and
2007 Feb 07
8
Apache+Mongrel Redirection Problems
...programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost egovm04
10.4.1.84 rss
10.4.1.84 railstest
HTTPD.CONF LOOKS LIKE THIS:
[snip]
NameVirtualHost 10.4.1.84
<VirtualHost rss>
ServerName rss
ServerAlias rss
RewriteEngine on
RewriteRule ^/rss(.*) http://10.4.1.84:5432$1 <http://10.4.1.84:5432/>[P]
ProxyPass / http://10.4.1.84:5432/
ProxyPassReverse / http://10.4.1.84:5432/
</VirtualHost>
<VirtualHost railstest>
ServerName railstest
ServerAlias railstest
RewriteEngine o...
2006 Feb 14
2
apache virtual host
...w/html and
not /home/craig/ruby-db/th-db/public
<VirtualHost *>
DocumentRoot "/home/craig/ruby-db/th-db/public"
ServerName app-server.tobyhouse.com
<Directory "/home/craig/ruby-db/th-db/public">
allow from all
Options Indexes ExecCGI FollowSymLinks
ReWriteEngine On
</Directory>
</VirtualHost>
What am I missing?
Thanks
Craig
2006 Sep 26
5
Expert feedback needed
...ig:
<VirtualHost *>
ServerName myapp.tld
ServerAlias www.myapp.tld
DocumentRoot /var/www/sites/myapp/current/public
<Directory "/var/www/sites/myapp/current/public">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
RewriteEngine On
# Check for maintenance file. Let apache load it if it exists
RewriteCond %{DOCUMENT_ROOT}/system/maintenance.html -f
RewriteRule . /system/maintenance.html [L]
# Let apache serve static files
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f
RewriteRule (.*) $1 [L]
# Don''t do...
2007 Oct 16
1
redirects with mongrel (dropping the www. from a url)
...virtual host with mongrel that
i want to set up a redirect from www.someapp.com to someapp.com
(dropping
the www.)
I have tried doing this in apache using a rewrite rule (below) which
worked before when the app was written in php.
Redirect http://www.soccertackle.com/ http://soccertackle.com
RewriteEngine on
RewriteCond %{HTTP_HOST} !^soccertackle\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://soccertackle.com/$1 [L,R]
Now the app has been completely re written in rails using mongrel &
apache (i don''t really understand much about web servers b...
2011 Oct 10
0
passenger , ruby on rails , apache 2.2.21
Hello,
I am configuring apache 2.2 to serve my rails app through passenger.
First, I redirect all http traffic to https with the following:
This is my web server apache conf file.
ServerName sampleapp
NameVirtualHost *:80
<VirtualHost *:80>
Options FollowSymLinks
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
</VirtualHost>
Inside the <VirtualHost *:443> section, I have the following
configuration, which seems extremely standard:
<Directory />
Options FollowSymLinks
All...
2006 Aug 05
3
Apache 2.2 + Mod Proxy Balancer + Mongrel - Hot Linking Protection?
...s CMS to manage a bunch of media
files. I am finding that a lot of people are "hot linking" to these
media files and would like to prevent this to save bandwidth. Usually
in the past, it hasn''t been a problem, I would add something like the
following to my .htaccess file
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC]
RewriteRule .(gif|jpg)$ - [F]
However, with my httpd config containing the following lines now:
ProxyPass / balancer://mycluster/
ProxyPassReverse / balancer://mycluster/
ProxyBlock images media
Opt...
2016 Feb 29
4
Problems with ProxyPass to a local ip (using SSL)
...certs/server.crt
SSLCertificateKeyFile /etc/httpd/certs/server.key
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://192.168.1.5:5100/
ProxyPassReverse / http://192.168.1.5:5100/
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "444"
RewriteEngine On
RewriteRule ^/(.*) https://myweb01.local.domain:444/$1 [R,L]
</VirtualHost>
As you can see, I need to do a redirection to port 5100 from 444 port and protect it using ssl.
I've configured iptables rules to drop connections to port 5100 directly:
*filter
:INPUT ACCEPT [0:0]
:FORW...
2008 Jun 16
3
Apache rewrites with mongrel
...ites ?
That?s in my /etc/apache2/conf.d/rails.proxy_cluster.conf
<Proxy balancer://mongrel_cluster>
BalancerMember http://127.0.0.1:4712
BalancerMember http://127.0.0.1:4713
BalancerMember http://127.0.0.1:4714
</Proxy>
that?s in my /etc/apache2/sites-enabled/000-rails
RewriteEngine On
# Deflate
AddOutputFilterByType DEFLATE text/html text/plain text/css
text/xml
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
ProxyPass /images !
ProxyP...
2010 Jan 09
5
Redirect 301 and cache
I want my rails app to redirect from no-WWW to WWW domain (for example
if I enter example.com/test to redirect to www.example.com/test). I
put the following code in the application controller and worked fine:
before_filter :check_uri
def check_uri
if !/^www/.match(request.host)
redirect_to request.protocol + "www." + request.host_with_port +
request.request_uri, :status => 301
2006 Jan 10
3
ROR setup problems with Suse + apache
...ine Fehlfunktion des Servers >halten, informieren Sie bitte den Webmaster hier?ber.
when I check the apache error log(/var/log/apache2/error_log)
logs I find the following :
[Tue Jan 10 13:20:33 2006] [alert] [client 192.168.0.150]
/srv/rails/demo/public/.htaccess: Invalid command ''RewriteEngine'',
perhaps mis-spelled or defined by a module not included in the server
configuration
I compared every thing with the rails-wiki for fedora
but I dont find the problem.
please help me !!
thank and best regards R Higazi
--
Posted via http://www.ruby-forum.com/.
2009 May 21
2
[PATCH server] Fix anyterm for multinode support
...controllers/vm_controller.rb | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/conf/ovirt-server.conf b/conf/ovirt-server.conf
index 6e5eea9..62f2dd8 100644
--- a/conf/ovirt-server.conf
+++ b/conf/ovirt-server.conf
@@ -23,8 +23,10 @@ NameVirtualHost AdminNetIpAddress:80
RewriteEngine On
RewriteMap vmnodes prg:/usr/bin/ovirt-vm2node
- RewriteRule ^/terminal/(.*\.(js|css|gif)|proxy/anyterm-module)$ http://${vmnodes:anyterm}:81/$1 [P]
- RewriteRule ^/terminal/(.*)$ http://${vmnodes:$1}:81/anyterm.html?param=$1 [P,NE]
+ RewriteRule ^/terminal/(.*)/(.*\.(js|css|gif))$ http://...
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