apache2

Apache have shared objects for both windows and linux.How do they do it?

Apache have .so modules for both windows and linux.How do they do it? ...

Problems with Django + mod-wsgi + psycopg2

So I am trying to make Django running with mod-wsgi for the first time. I have configured Apache as shown in examples and I am pretty sure I did everything right. I did not set the PYTHON_EGG_CACHE variable so it uses the default: /var/www/.python-eggs. I have created this directory and made it writeable for user www-data. When I open ...

Using a proxy to access the Weblogic Administration server

We have set up where the Weblogic admin server is on port 9002, but all access to the system can only come on port 80. The application itself runs on some other ports, and I've successfully proxied the relevant URLs from port 80 to Weblogic using the Weblogic Apache proxy plugin. However, this doesn't work for the Weblogic Admin consol...

Mod_Rewrite Trailing Slash Issue Problem/Question

Hello. I am trying to lock a client out of a PHP application I created them but, still allow them a "virtual" access to the doc root using: RewriteCond %{DOCUMENT_ROOT}/ftp/%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}/ftp/%{REQUEST_URI} -d RewriteRule ^(.+) /ftp/$1 [L] This works like a charm when a user goes to: http://domain...

HTTP request dispatch from Web Server to a CGI/FastCGI process

To gain more understanding of how HTTP requests are handled in case of web apps, how does a web server like Apache, dispatch a request to one of its Virtual Hosts? What are the initial programs executed irrespective of the framework (Rails/PHP/Java)? I would appreciate if someone can list the steps taking example of Rails (as I know Rail...

Can't read cookie in php

Hi, I am unable to read the cookie using $_COOKIE['mycookie']. I am using PHP-Apache on Linux box. Is there any seeting in php.ini or httpd.conf to activate cookie. Thanks ...

How to exclude .png files from being rewritten via htaccess.

I have the following rule that redirects all traffic to index.php when public folder is visited. How can I modify it to exclude .png files? That means, if /public/something.png is visited, it should render in the browser or should be accessible inside the code when called using an: "<img src='/public/example.png'>". RewriteCond %{DOCUM...

Apache2 Enabling Includes module causes svn access to quit working

I have dav_svn installed to provide http access to my svn repos. The url is directly under root, eg mywebsite.com/svn/individual-repo. This setup has been working great for some time. Now, I need SSI (server-side includes) for a project, so I enabled this module with a2enmod include. Now, tortoisesvn can't access the repo; it always retu...

What are the minimum hardware requirements for IIS 6.0 and Apache 2.x?

One of the questions on my IT assignments is to provide the minimum hardware requirements for Apache 2.x and IIS 6.0. I know this should be a simple-as-pie question, but for the life of me I can't find any definitive answers after extensive googling..although I'm notorious for overlooking things. If I am to be flamed, please at least p...

.htaccess: Deny from all

Hello, This is working: <Files *.fileext> Order Allow,Deny Deny from all </Files> This is not: <Files *.fileext|somedirectory> Order Allow,Deny Deny from all </Files> Please help. ...

How do I add PHP support to Apache 2 without breaking my current installation?

I run Apache 2 with WSGI (for a Django-app) on a Ubuntu box. I want to use Nagios for server monitoring, and for this purpose it seems I have to add PHP support to Apache. When I installed Apache 2, I did this: apt-get install apache2 apache2.2-common apache2-mpm-worker apache2-threaded-dev libapache2-mod-wsgi python-dev Available mo...

Apache 2 Administration Tools on Ubuntu or Windows

Hi There... I am totally new to Apache and Ubuntu, is there an admin tools where the available functions and features and settings are more accessible? I am finding it very difficult to do even the simplest things.... please help. Cheers. ...

Automatic generation of a website "token" for SSL authenticate on user's first visit on an Apache2 server.

TLDR: I'm looking for a software based two-factor authentication system. Summary: I am trying to find a solution equivalent to a SSL client side certificate, except that said certificate would optimally be generated at the first connection of the browser to the server. Long version: I want to automatically generate a security token usi...

Following aliases within rewrite conditions

I have the following code: Alias /shared /home/espire/espire/website/shared/www RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule !\.(js|ico|gif|jpg|png|css)$ /home/espire/espire/shared_index.php Which should not rewrite files which actually exists on the server. However, if I'm requ...

symfony error 500 instead 404 at production

Hello, my symfony project at production when an actions does not exist is throwing error 500 instead of 404. At dev enviroment, it shows error 404 (actually a debug of the 404 error says action not found). I am using custom 404 templates as manual says. ...

Redirect user to a directory using mod_rewrite - Simple question

Hi, I'm trying to do so if the user going to this url: http://www.abc.com/ it will redirect him to http://www.abc.com/minisite/ or, if he's going to tihs url: http://www.abc.com/dir/something.php it will redirect him to: http://www.abc.com/minisite/dir/something.php I'm trying to do this in Mod_Rewrite... Here is what I've wrrite...

Cgi not executing python

Hello everyone. I'm having a problem getting CGI to work for Python. I've added Options ExecCGI AddHandler cgi-script cgi py pl inside /etc/apache2/sites-available/default within and now Perl works, but Python gives out a 500 Internal Server Error.. EDIT: This if the current 'default' file <VirtualHost *:80> ServerAdmin web...

Apache2 mod_proxy Proxy Error

My web-app is located in mysite.com:8080. I want to access to it by typing webapp.mysite.com. So, I followed these steps: 1)Enable needed modules: a2enmod proxy a2enmod proxy_http apache2 restart 2)Create /etc/apache2/sites-available/mysite <VirtualHost *:80> ServerName webapp.mysite.com ProxyRequests Off <Proxy *> ...

Rewrite URL to HTML file causing rewrite to .html/

I'm currently working on an overhaul of my blog site, and have found a way to convert all my current pages into static html pages. They are currently using friendly url's which remap to a central index.php page with GET parameters attached on. The change I am trying to make is have those same friendly URL's map to their html counterpart...

URL Encoding with Underscores in a Directory Name?

We've run into an odd argument where I work, and I may be wrong on this, so this is why I am asking. Our software outputs a directory to an Apache server that replaces an underscore with a %5F in the name of the directory. For instance if the name of the directory was listed as a string in our software it would be: "andy_test", but t...