apache

Windows 7: IIS 7.5 w/ PHP & MySQL or Apache w/ PHP & MySQL?

I just got my self a new laptop, it runs on windows 7 and i am in deliberation what dev environment to set up. I have most of my life used wamp set up, on windows machines for local dev environments. Here i recently installed IIS and it looks very convenient to set up sites and so on and so forth. So I am thinking of installing php and...

sqlite journal file location

Curently sqlite is writing journal file in the same directory where is placed database file. It makes a problem with the directory permission (it has to be writable). Is there any method to force sqlite to write journal files in other directory? ...

PHP mail() contact form not delivering to Gmail - advice needed

I'm using a PHP contact form and it is sending mail to non gmail addresses, however when I set it to send to a gmail address, it doesn't get delivered (it doesn't even appear in junk mail). I've heard of issues like this before - I'm not a web developer/expert so can anybody suggest code/configuration changes to my PHP contact form belo...

Serving static files with apache and mod_wsgi without changing apache's configuration?

I have a Django application, and I'm using a shared server hosting, so I cannot change apache's config files. The only thing that I can change is the .htaccess file in my application. I also have a standard django.wsgi python file, as an entry point. In dev environment, I'm using Django to serve the static files, but it is discouraged i...

htaccess rewrite base url

Anyone out there good with htaccess and mod rewrite - i need your help! I need to rewrite the base part of a url. for example all requestst to http://domain1.com need to go to http://domain2.com The requests will typically be in the form as follows: http://domain1.com/main/test?q=1 i then need to go to http://domain2.com/main/test?q...

Last-Modified not working for .htaccess

I'm tyring to implement browser caching and follow Google PageSpeed's recommendation about setting Last-Modified to a data that is "sufficiently far enough in the past." I have the following in my .htaccess: <IfModule mod_headers.c> <FilesMatch "\.(json|pdf|swf|bmp|gif|jpeg|jpg|png|svg|tiff|ico|flv|js)$"> Header Set Last-Modified "Fr...

Solr query parser that allows specifying multiple default fields

I would like to use the Dismax query parser because it allows me to specify multiple default search fields (using the 'qf' parameter) as well as other nice features such as field boosting. However, I want a query parser/scoring algorithm that takes the sum of all field scores, rather than just the max. Is there a way to configure D...

htaccess redirect 301 all to one domain

I have 3 domains: domain1.com domain2.com domain3.com I want to 301 redirect all to domain3.com/$1. That includes domains with www and non-www. domain1.com -> domain3.com www.domain1.com/$1 -> domain3.com/$1 domain2.com -> domain3.com www.domain2.com/$1 -> domain3.com/$1 domain3.com X-> domain3.com (no redirect) www.domain3.com/$1 -...

How to configure symfony when using apache

Please help, how do I configure apache (wamp) in windows when I want to use symfony as my php framework, I followed the guide(pdf) from the symfony site. But I end up with this when I access http://127.0.0.1:8080/: But I end up with this, when I try to access http://localhost/sfproject/web/frontend_dev.php What is the correct url to a...

How to add to HTTP header uncompressed size of file?

I am using Apache server to serve static content using mod_gzip module in Apache. Is there a method to add the uncompressed size in headers sent to the client? ...

.htaccess to forward url and exclude one page

How to write a .htaccess that has in result: ALL Requests on that domain go forwarded to the index.html at the rootfolder of the same domain. The index.html itself is not forwarded (excluded) as it includes 2 outbound links. thanks chris ...

htaccess rewrite

I use right now: RewriteEngine on RewriteRule !^index.html http://samedomain.com [L,R=301] so that all inquires go the http://samedomain.com ...(usualy it would load index.html) the index.html is excluded so it does not come a endless loop. i can open http://samedomain.com/index.html FINE.. it does not come redirected. And other re...

Which MQ implementation would be suitable

Hi I have to implement Message Queue on site which do 20K/Day write operation in Database. We are willing to introduce message queues to take load off these write operations. I dont know much about Message Queue Implementation. If we implement it on one server only will it be helpful? or suggest some better impentation. Also which MQ t...

Add computer name(instead of ip address) to Apache2.2 permission list

Hi, I am using Apache2.2 to load a maven repository. For security reason, we need to restrict the access of the repository. To do that, we set a list of allowed access IP address in the apache foundation\2.2\conf\extra\httpd-restriction.conf file. The problem of that is some users IP address keep chaning and cannot gain access to the r...

Wordpress implementation for multiple site in single Linux Server on DMZ

Hi All, I'm planning to install Wordpress on Linux system for my company website, does this scenario works with Wordpress ? Single Wordpress install but can have multiple domain eg: www.team1.com www.team1.com/product2 www.team1.com/product3 www.team2.com www.team2.com/product2 . . .etc do i need to perform multiple install of Wordpr...

Apache mod status is showing ..reading..

Hi, Recently my apache got DoS attack, it happened attacker flood SYN request to our apache, i know because at that time i have wireshark enabled. After the attack finished, i restart my apache and its all back to run normal. But the problem when i check my serverstatus from mod-status there are some threads are showing > 0-92 61968...

MacOS + apache + mod_wsgi + django: what's a correct folder layout and permissions for web apps?

Hello. I'm testing django right now on Max OS X Snow Leopard Server. I have compiled mog_wsgi for build-in apache/python and enabled it in apache via LoadModule wsgi_module. I have also installed django via standard python setup.py install command. After that, i have created a test django application by named webtest in ~/Documents and ...

HTTP - 400 bad request while downloading file

Hi All, After further investigation on basis of previous question url encode/decode is working properly. Issue is something with Apache server (might be) which serves file download request Specially if my file name ends with % sign, it fails. For e.g. Original File name: 204153_20090605_Aluminiumacetotartraat_DCB_oordruppels_1,2%.pd...

Htaccess accessing outside of the current directory

In my web root I have a .htaccess which uses a RewriteRule, for example: RewriteRule ^/t/([0-9]+)/$ ../list.php?id=$1 [L] Is this correct if list.php is in the folder below the current one? I can't find any information about this and it's currently not working, so I'm not sure whether it is either possible, or I am doing it wrong. Tha...

Django nginx and append slashes problem

I am trying to use nginx as a simple load balancer for django per Jacob Kaplan-Moss' example: http://github.com/jacobian/django-deployment-workshop http://python.mirocommunity.org/video/1689/pycon-2010-django-deployment-w If I stop nginx and have apache listen on port 80 everything works fine. If I have apache listening to nginx my ur...