apache-config

Auto initialization for a django app on apache/fcgi

Hello, We are implementing a web service that is hosted in Dreamhost VS, uses Apache with FCGID running a Django application. Our key issue is that the initialization of our application is extreamly long (10 sec) to enable very fast responces. We would like to be able to have a process running waiting for users at all times in a post...

How to edit httpd.conf for www aliasing?

How do I setup Apache, editing the httpd.conf file I think, to properly alias www so my server directs the right way? ...

PHP mail() function does not work on web-host

Hi everyone, I'm having issues sending emails using the php mail() function. I know the php script I have works because I have an identical copy of it on another web-hosting company and it works there. I think it has to do with the web-hosting company itself. Do any of you know what I need to do in order to make it work? Is there some...

Apache ErrorDocument with absolute path

I have a server with several virtual hosts. Now I want to set up the error documents for the whole server. I have located my error sites in /var/www/error/*, but with the ErrorDocument Directive I am only able to set the error document relative to document root, but I want to use the absolute path (e.g /var/www/error/404.html). Has anyo...

Apache Server File Permission

Hi All , I am using Apache Server 6.0 and I am trying to update a file using ajax put request but the server is giving me error 405 Method Not Allowed. I am working this out on windows. Can anybody help me out if that. Thanks in Advance. Vinay ...

Apache config: send methods other than GET, POST, HEAD to cgi?

I've tried it before and remember that apache2 did not allow to send requests with methods other than HEAD,GET,POST to cgi. Is that true or did I just not find the correct solution back then? I've found somewhere that a line like: Script PUT /cgi-bin/put.pl to access.conf could be used.. What I am trying to do is setting up simple Web...

How do I configure Apache2 to allow multiple simultaneous connections from same IP address?

By default, Apache2 seems to allow only 1 connection per IP address. How do I configure Apache2 to allow multiple simultaneous connections from the same IP address? Here is my situation: a web app being hosted on a server. a remote client makes an request that may take 15 seconds to complete. the same remote client makes another (ind...

2 or more Zend apps on a single host with base url rewrite

how can i configure my zend apps so that they can be accessed on the same domain like the one found on apache tomcat e.g. if you have two applications deployed on apache tomcat server you can access them like http://localhost:8080/AplicationOne http://localhost:8080/ApplicationTWo now what i want to have is if i have 2 apps X and ...

Will this config error stop apache from restarting

I have a production website running apache on linux. There are all sorts of rules set up which I don't want to mess with. I need to restart apache so I decided to do a configtest first to check that everything was ok. My question is, will apache restart given this error? >$ service httpd configtest Syntax error on line 129 of /et...

Django (wsgi) and Wordpress coexisting in Apache virtualhost

I have a Django project that I need mounted at two different subdirectories of my url, and I need Wordpress running at /. So: *.example.com - WordPress *.example.com/studio - django *.example.com/accounts - django Here's the httpd.conf that I have so far: <VirtualHost *:80> ServerName wildcard.localhost ServerAlias *.localhos...

Apache Rewrite SSL Problem

My application server has two ways to call it. One via the WEB and one via SOAP XML calls. As you can see in my apache config file I have two PORT 80 entries, 1 for the website and one for the soap calls. Both with specific rewrite rules to lead the traffic in the right direction.. now im trying to get SSL in place. I made the first web...

How to setup multiple subdomains on lampp?

Hi , I need to set up multiple projects on lampp. How can i create sub domains for these multiple projects. My projects are in cakePHP. Can anyone help me? ...

Django using mod_wsgi for Sub Urls

Similar questions have been asked before on this site, but I had a doubt as to how my site anchor tags will be replaced when I try to host my website under a suburl. E.g. My domain is www.example.com and my suburl which maps to the Django installation is www.example.com/2010/registration Now since the anchor tags in my templates (for th...

apache:Howto "reload" just one vhost file

Hi, experts! I have a question about apache configuration. Please help me! My server run multi virtual hosts (multi domains). But, every time I edit a vhost file, I have to restart apache, and, server have to reload all configuration files. That is expensive. Is there any way to "restart" or "reload" just one vhost configuration file? I...

Django with mod_wsgi returns 403 error

Hi! I am trying to use Django with Apache (and mod_wsgi). With the default Django webserver everything was going well, but now I get 403 (access forbidden) error when trying to load the page. I searched previous posts here and read official docs but the solutions there weren't helpful. Here are the lines from my httpd.conf: WSGIScrip...

failed to allocate memory

Hi all, Am running apache as frontend to mongrel ,i am passing request to mongrel using passproxy like ProxyPass / http://localhost:3000/ i have download routine in one of controller and now i would like Apache to server this request...for that i put a line in httpd.conf ProxyPass /streams/download/6626/ ! now my request fo...

Getting Django Admin Site Formatted Under Apache

My question is how can I get my Django admin site to be formatted (all pretty) under Apache the way it is under runserver? I can bring it up and log into it, but it is not all nicely formatted. There is nothing special about my urls.py file from django.conf.urls.defaults import * from django.contrib import admin from amr.views import h...

How to manage apache configurations to make them more portable between servers?

The common issue: you move an application from one server to another, usually this means other directories to configure in your application configuration files and in apache conf files. How can you minimize if even eliminate the hardcoded paths in config files? In my case these applications are in languages like PHP, Python, Perl or Ru...

Apache Security Default Install Permissions

Hi guys, ive recently installed apache2 on my Ubuntu machine and have a few questions about security and user permissions. I know how to listen on other ports, hide indexes with -Indexes and how to create/disable new Virtual Hosts on the same machine, but there is a lot of user options already preset in the standard install config I am u...

Multiple virtual hosts - all of those beyond the first are inheriting the DocumentRoot

Hey, I am trying to set up several virtual hosts in my apache httpd.config file. However it seems that if I change them round, they all inherit the DocumentRoot value from the first one. My VirtualHosts are as follows: <VirtualHost customerApp_Global:427> ServerName customerApp_Global DocumentRoot "C:/wamp/www/customerApp_v2" Direc...