apache

Using Apache proxy to foward traffic to tinyproxy

I need to find a way to proxy some traffic on port 80 to tinyproxy running on a separate port. We have a client working behind a very strict firewall with only port 80 open (and cannot get to sites like meebo.com, etc). I was hoping I could create a CNAME to our domain and a virtual host on apache, catch the request for that new CNAME an...

How do you set up SSL and Nginx Proxying?

I have Nginx listening to traffic on port 80 and proxying certain request to Apache over port 8080. I am going to set up Nginx to listen to port 443 for https traffic, but my question is how should the proxying be done now? Does the proxy to Apache need to be https or has Nginx already decoded it so I can keep sending it to Apache over p...

apache vs nginx vs lighttpd? Which is simpler to configure and administer?

A bit more context, in case this question is too general: the uses I have in mind are running django and serving static content and name-based virtual hosting. I am vaguely aware of the performance/resource tradeoffs between the different servers, but that is a secondary concern. Anyone who has deployed all three in production? ...

Why does RewriteRule ^page/?$ page.php [L] match site.com/page//

RewriteEngine on RewriteRule ^page/?$ page.php [L] This ends up matching the url www.site.com/page// but internally it acts differently than www.site.com/page/ because the stylesheets and images no longer appear properly. Am I doing something wrong or is this just something I need to deal with if I don't want to go through a lot of tro...

Error loading PHP modules

I'm running PHP 5.2.8 on Apache 2.2.11 on Windows XP SP 3. In php.ini, extension_dir = "C:\Program Files\PHP\ext" extension=php_mysql.dll In error.log: PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\ext\\php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0 php_mysql....

Good uses for Apache CollectionUtils

I found the CollectionUtils class a year or so ago and a few of the methods like, collect, and transform seem really cool, however, I have yet to find a use where it would not by syntactically cleaner and\or easier to just write the logic with a simple loop. Has any found a unique\useful use for these methods (transform, predicatedColl...

Stdout when running django as fastcgi

I have configured my Django app to run under Apache+FastCGI on Linux (Ubuntu, if it matters). My question is: how to redirect stdout to a file when running Django as fastcgi. EDIT To clarify: I am familiar with django-logging module and yes I am using it already. This is not what my question is about. Say when I run Django from the con...

Migrating from IIS 5.1 to Apache 2.11, how do I move/translate ISAPI filters into Apache?

Maybe this isn't even a valid question, so any help would be good. ...

Why do I have to copy the libmysql.dll to the apache/bin directory to get the PHP extension to load properly?

I'm on a Windows machine. This seems like it should be unnecessary, but when I do it, everything suddenly works. Is there something wrong with my path? Do I need to add something to it to avoid having to copy DLLs? ...

Slim down and/or understand the Eclipse files in a Dynamic Web Project

The files residing in .settings in a Dynamic Web Project are: .settings/ |-- org.eclipse.jdt.core.prefs |-- org.eclipse.jst.common.project.facet.core.prefs |-- org.eclipse.jst.j2ee.ejb.annotations.xdoclet.prefs |-- org.eclipse.wst.common.component |-- org.eclipse.wst.common.project.facet.core.xml |-- org.eclipse.wst.jsdt.ui.superType.co...

How can I get Apache HTTP Server 2.2 and IIS 5.1 to both work on my localhost?

I figured the easiest thing to do was to just change the port number that Apache listens to, but I still can't get it to start back up after installing IIS. My IIS currently serves up pages correctly at http://localhost:80. I have several PHP projects, and here are the basics of how ports are configured in my httpd.conf: Listen 81 # Be...

Apache is listening on a different port, but how do I get it so I don't have to type in the port number?

I am running IIS and Apache HTTP Server side-by-side on my localhost machine, and Apache is listening on a different port (port 81). IIS is listening to port 80. However, I can only get to my virtual domains for Apache if I type in that port number. So for instance: http://virtual.myvirtualdomain.com:81 http://virtual.myvirtualdomain2.c...

Django Apache/mod_python Admin CSS not appearing with admin tables

I have Windows XP/Django/apache/mod_python working on localhost. All parts are working with the exception of the admin CSS not rendering. The admin works, but no html formatting. I've made additions in: settings.py INSTALLED_APPS 'django.contrib.admin', urls.py from django.contrib import admin admin.autodiscover() (r'^ad...

htaccess mod_deflate does not work on shared server

Hello. I'm developing a website in PHP and I have large JS files that I want to compress. So, I added this in my .htaccess file: <FilesMatch "\.(js|css|html|htm|php|xml)$"> SetOutputFilter DEFLATE </FilesMatch> It works great on my local wamp server install but once I move the files on my shared server, the DEFLATE command does n...

Submitting form fails when the form data contains a <script> tag LAMP

We have a hosted site that has a CMS we built running on a LAMP stack. We noticed that when you save HTML that has a tag embedded in the HTML the request immediately dies. This does not occur on the staging or local development instances of the CMS, so I'm assuming its a server configuration issue. Any ideas what might cause this behavi...

Apache alternatives to PHP header function.

I'm working on a website that has a number of style sheets all of which need to be handled as php scripts server-side. My .htaccess file looks something like this: <FilesMatch "\.(css)$"> ForceType application/x-httpd-php </FilesMatch> This causes a small problem as the mime type of the http-response's Content-Type field is then s...

mod_rewrite weird problem

I have a strange problem with mod_rewrite, the rules that are relevant here are: RewriteRule ^(.*)\/igre\-(.*)\.php\?Page=([0-9]+)$ game.php?GameUrl=$2&Page=$3 [L] RewriteRule ^(.*)\/igre\-(.*)\.php$ game.php?GameUrl=$2&Page=1 [L] And a corresponding URL might look something like this: example.com/miselne-igre/igre-shirk.php?Page=2 e...

Mod_rewrite with godaddy

I'm trying to get mod_rewrite to work on a client's website who insisted that we use Godaddy web hosting. She's got a shared linux hosting account. Will mod_rewrite work (using .htaccess) and if so, how? I'm not sure if Godaddy uses Apache or not. ...

Query Strings & Mod ReWrite

Hey there, I'm not too inexperienced with ReWrite (not a master either, though) so I was hoping somone might be able to help me. RewriteRule ^$ index.php?page=home [NC] RewriteRule ^adm$ index.php?page=adm_home [NC] RewriteRule ^adm/stats index.php?page=adm_stats [NC] Above is a snippet of my .htaccess file. As you can see, when so...

Best way to import/export a Apache Jackrabbit repository

What is the best way to import/export data from a Apache Jackrabbit repository? Right now, I have a website based on a repository with over 100GB data in a server but I frequently need to take a subset of this data in my notebook for in-loco demonstrations. How can I do this in the easiest and fastest way? ...