Sponsored Content
Top Forums Web Development Apache How to 'alias'/'locate'/'redirect' subsite to another internal server? Post 302462244 by Neo on Wednesday 13th of October 2010 04:00:59 PM
Old 10-13-2010
Apache mod_rewrite
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Howto locate locally installed Perl module for a CGI script in APACHE .htaccess

Hi, I have the following simple CGI script, just containg header: #!/usr/bin/perl -w use CGI ':standard'; use lib "/home/myname/lib/perl5/site_perl/5.8.5/"; use Mail::Sendmail; I also have included this directive in ~/public_html/.htaccess : SetEnv PERL5LIB... (0 Replies)
Discussion started by: monkfan
0 Replies

2. HP-UX

Apache Redirect Transparently

I have two servers running apache server, namely server A and B. All users access server A, but for some application, I would like to redirect the request to server B. I have set apache redirect in server A apache config file. Redirect /application http://serverB/application Now, the flow... (2 Replies)
Discussion started by: alfredo
2 Replies

3. Web Development

APACHE rewrite / redirect URL

Hello. I have scenario where a Client send request to Server1. Server1 send request to Server2. Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client. Trying to use APACHE proxy... Anyone can help? What to download / configure / ...? Thank you for your... (2 Replies)
Discussion started by: ampo
2 Replies

4. Web Development

why do apache redirect me to the same path ?

Hi, everything is working perfectly. I have one more question. Is it possible to specify a file instead of a directory in DocumentRoot ? (see phpinfo.php in the example). Is it a correct procedure ? <VirtualHost www.patrick.dev:80> ServerAdmin patrick.diviacco@gmail.com ... (1 Reply)
Discussion started by: aneuryzma
1 Replies

5. UNIX for Dummies Questions & Answers

Locate which httpd.conf is used by Apache

What is the command to see what httpd.conf file is apache using. Apache is started. (1 Reply)
Discussion started by: galford
1 Replies

6. Web Development

redirect http to https in apache

i read thru a few article how to do it, but i could not get it to work the way i want it. vi ../httpd.conf Redirect permanent /dev https://servername/portal/ when i type servername, works fine. my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies

7. Shell Programming and Scripting

Apache redirect file exceptions

Hi, I am currently redirecting all mobile devices to my mobile site in apache. I need to exempt the following file types from redirecting even if the request is made from a mobile device. *.css *.jpg *.jpeg *.gif *.js Does anyone know where and what I need to do for this? Thanks in... (1 Reply)
Discussion started by: kmaq7621
1 Replies

8. Web Development

Apache Redirect

Hi All, I have my URL as http://mysite.com/shop/maternity/tops_30116 Now I want to append "?No=0&Nrpp=100" and then redirect to http://mysite.com/shop/maternity/tops_30116?No=0&Nrpp=100 This is for many URL which have "maternity" inside them. Can there be a single Redirect... (0 Replies)
Discussion started by: ankur328
0 Replies

9. Web Development

How to redirect URLs in Apache?

I am a total newbie to Apache. I need to do this only for this weekend during an upgrade from old system to new system We have different URLs http://domain.name/xxx (xxx varies to any length and words - it can be /home, /login, /home/daily, /daily/report, etc). How do i redirect all those to... (0 Replies)
Discussion started by: GosarJunk
0 Replies

10. UNIX for Advanced & Expert Users

CentOS VPS Server Apache Alias

All, We have a hosted CentOS 6 VPS server, using CPanel to install/config the domains/subdomains and installed osTicket in: my.domain.com/tkng/ We are trying to define the following Apache alias: my.domain.com/tickets which has to point to: my.domain.com/tkng/upload/ CPanel... (0 Replies)
Discussion started by: TBotNik
0 Replies
Jifty::Script::FastCGI(3pm)				User Contributed Perl Documentation			       Jifty::Script::FastCGI(3pm)

NAME
Jifty::Script::FastCGI - A FastCGI server for your Jifty application SYNOPSIS
AddHandler fastcgi-script fcgi FastCgiServer /path/to/your/jifty/app/bin/jifty -initial-env JIFTY_COMMAND=fastcgi Options: --maxrequests maximum number of requests per process --help brief help message --man full documentation DESCRIPTION
FastCGI entry point for your Jifty application options --maxrequests Set maximum number of requests per process. Read also --man. --help Print a brief help message and exits. --man Prints the manual page and exits. DESCRIPTION
When you're ready to move up to something that can handle the increasing load your new world-changing application is generating, you'll need something a bit heavier-duty than the pure-perl Jifty standalone server. "FastCGI" is what you're looking for. If you have MaxRequests options under FastCGI in your config.yml, or command-line option "--maxrequests=N" assigned, the FastCGI process will exit after serving N requests. SERVER CONFIGURATIONS
Apache + mod_fastcgi # These two lines are FastCGI-specific; skip them to run in vanilla CGI mode AddHandler fastcgi-script fcgi FastCgiServer /path/to/your/jifty/app/bin/jifty -initial-env JIFTY_COMMAND=fastcgi DocumentRoot /path/to/your/jifty/app/share/web/templates ScriptAlias / /path/to/your/jifty/app/bin/jifty/ Apache + mod_fcgid + mod_rewrite An alternative to Apache mod_fastcgi is to use mod_fcgid with mod_rewrite. If you use mod_fcgid and mod_rewrite, you can use this in your Apache configuration instead: DocumentRoot /path/to/your/jifty/app/share/web/templates ScriptAlias /cgi-bin /path/to/your/jifty/app/bin DefaultInitEnv JIFTY_COMMAND fastcgi <Directory /path/to/your/jifty/app/bin> Options ExecCGI SetHandler fcgid-script </Directory> <Directory /path/to/your/jifty/app/share/web/templates> RewriteEngine on RewriteRule ^$ index.html [QSA] RewriteRule ^(.*)$ /cgi-bin/jifty/$1 [QSA,L] </Directory> It may be possible to do this without using mod_rewrite. Lighttpd (<http://www.lighttpd.net/>) Version 1.4.23 or newer is recommended, and you may adapt this config: server.modules = ( "mod_fastcgi" ) server.document-root = "/path/to/your/jifty/app/share/web/templates" fastcgi.server = ( "/" => ( "your_jifty_app" => ( "socket" => "/tmp/your_jifty_app.socket", "check-local" => "disable", "fix-root-scriptname" => "enable", "bin-path" => "/path/to/your/jifty/app/bin/jifty", "bin-environment" => ( "JIFTY_COMMAND" => "fastcgi" ), "min-procs" => 1, "max-procs" => 5, "max-load-per-proc" => 1, "idle-timeout" => 20, ) ) ) Versions before 1.4.23 will work, but you should read Plack::Handler::FCGI's lighttpd documentation <http://search.cpan.org/dist/Plack/lib/Plack/Handler/FCGI.pm#lighttpd> for how to configure your server. More information Since this uses Plack::Handler::FCGI, you might also want to read its documentation on webserver configurations <http://search.cpan.org/dist/Plack/lib/Plack/Handler/FCGI.pm#WEB_SERVER_CONFIGURATIONS>. METHODS
run Creates a new FastCGI process. perl v5.14.2 2011-01-25 Jifty::Script::FastCGI(3pm)
All times are GMT -4. The time now is 03:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy