My ISP requires me to put the following in my .htaccess files:
AddType x-mapp-php5 .php
But that breaks my development machine.
I don't really understand what that directive is for, but I'm sick of commenting it out for dev, and uncommenting it whenever I need to upload a new version.
Is there some way of supporting it in dev?
...
Hello guys,
I now have 8GB of ram in my server, so bare that in-mind when making recommendations on how much to up settings.
Basically, Apache won't concurrently load more than one page at a time. What the hell could be causing this? This causes real problems when I execute a page that takes a long time to load, no other pages will loa...
I came across something in one of my rails books that said I should set
ServerSignature Off
ServerTokens Prod
to disable apache from showing server information in production when the app screws up. Is this necessary? The only error message I see in prod is the standard Rails production error message. I never see any server informat...
I would like to have pretty 404 pages, as well as other error pages.
I redirected all the errors (400, 401, 403, 404, 500, 502, 504) to my error.php.
Apache provides a lot of information in $_SERVER variable.
Do you know if there is good a ready script I can use for my error pages?
...
Hi,
I'm trying to have apache create a new error log file every day, based on the current date.
The default error log filename is something like this:
ErrorLog "/logs/error.log"
and I want it to be something like:
ErrorLog "/logs/error_$year$month$day.log"
Any ideas?
...
I have a main site and a mobile site, and am looking at having Apache redirect users based on their reported user-agent as the next step up in providing a better mobile experience. E.g. a user who visits http://jonathanscorner.com/spectacles/ is redirected to http://jonathanscorner.mobi/?url=/spectacles/. At present what I have tried in ...
I have a non-Apache server listening to port 8001 and Apache listening port 80. I want a certain virtual domain to actually be served by the non-Apache server over port 80.
Example
Servername mysite.com
# Forward this on to the server on port 8001
I thought I could do this with mod_proxy and ProxyPass with something like this. ...
An Apache 2.x Webserver with default configurations from the ubuntu/debian repositories will use the www-data unix account for apache2 processes handling web requests. Assuming that apache is serving two different sites (domain1.com and domain2.com), is it possible for apache to use unix user www-data1 when handling requests to domain1.c...
I have both Apache 2 and JBoss 4.2.3 on the same machine and would like both of them to use port 80. There are several ways I see people doing this mod_jk, mod_proxy, but I'm not sure which one is the best.
I don't need any load balancing, but I do need HTTPS.
...
Hi ,
I have an encoding problem, using the Apache rewrite rule below:
RewriteRule ^/somethingx/somethingy/somethingx_somethingz(.*) /somethingx/somethingy/somethingx_somethingy/$1 [L,R=301]
The Rewrite rule works fine but except it is encoding '?' characters in the request as '%3f' characters in the response.
Does anyone know why th...
I have a web application of a conference that has been closed years ago. There is no real need for the application to be running any more so I'd like to create static pages from the dynamically generated pages.
I ran wget http://site.name.org/ and now I have bunch of files called talk.html?id=77 with numbers from 1-300
How can I co...
i have a problem with my session files...
if i go to my site directly (www.example.com) then php session files owner is www-data:www-data but if i go do the site via www.example.com/index.php then the owner of the session files is ftp:www-data and the resulting problem is when i want to start the session but the session file allready ex...
I am trying to write an htaccess file that essentially does this:
if(requested file == "some-file.php" || requested file == "some-file2.php" || requested file == "some-file3.php")
then Rewrite to redirector.php?uri=some-file.php <- substitute requested file without passing any parameters
else
// existing rewrite conditions from silve...
Following this guide on CentOS 5.2, just getting nagios set up for the first time. The main page shows up just fine, but when I try to view any of the pages that should be generated by a cgi process, firefox prompts me to save the .cgi instead, so apache's obviously not understanding that it needs to run the cgi and get back some html f...
I'm using nginx as a reverse proxy to apache/mod_wsgi and Django. Currently everything is working fine with / aliasing my wsgi file, and /media aliasing my media directory. However, I want to set it up so that /media/foo/bar also aliases my wsgi file such that /media/foo/example.txt will serve example.txt with apache, but /media/foo/bar/...
I had a server running on a windows xp machine using apache2 with php and mysql. I've recently upgraded to windows 7 and have been having trouble getting it to work. Apache works fine and php works, but I can't seem to get it to work with a php.ini file.
When I set PHPIniDir to a directory with a php.ini file, the Apache service does NO...
I want to show some images from other sites but i want my own servers url without storing at my end.
in code i write like this
<img src="http://image.com/ab.gif"/>
but on bowser source display as
<img src="http://mysite.com/ab.gif"/>
...
I am brand new to subversion and have been told that this is the best thing since sliced bread. I have tried google and I am just drawing blanks on what is wrong and have tried multiple different suggestions. I get the following error
The Location information has been specified incorrectly.
svn: Propfind of '/svn': 405 Method not all...
I am installing Koha from source. Generic unix directions indicate the following step after sudo make install
sudo ln -s /etc/koha/koha-httpd.conf /etc/apache2/sites-available/koha
huh?
My apache2 directory contains no sites-available, only
/private/etc/apache2/extra
/private/etc/apache2/httpd.conf
/private/etc/apache2/magic
/private...
I have a file
http://www.www.com/somefile.php
I would like to be able to get to the same file by going to
http://www.www.com/somefile
But I still need
http://www.www.com/directory
to open the file
http://www.www.com/directory/index.php
if, in fact, directory is a directory.
This is a typical LAMP setup with Red Hat and Apa...