apache

Pdf gets mangled when accessing subversion repository via apache webdav

I am running a subversion server with access via http using webdav. I have noticed that when I access the repository with a browser, sometimes the pdf files in the repository show up as plain text (as if you viewed the pdf with a text editor like emacs, vim, or notepad) instead of being downloaded, or opened with some pdf reader. If you ...

Hosting asdocs in a subfolder

I generated my asdocs just fine today. I wanted to host them on a public site: www.somethingoranother.com/asdocs. I put the asdocs folder in a subfolder of my server. In other words, my documentroot was here: /var/www/somethingoranother and I put the asdocs here: /var/www/somethingoranother/asdocs This broke the asdocs, becaus...

Could not import/No module named Django Error with Apache

I had a small proof of concept set up on a development server on a local machine. I'm now trying to move it over to django on a production server, which I'm using webfaction for. However, now that I'm switched over to apache from the built in django server I get the following: ViewDoesNotExist: Could not import orgDisplay.views. Error...

Boost results in Solr by certain field?

Hello, I'm pretty new to Solr but I'm trying to integrate it in to my website. I've been looking in ways to "boost" results in Solr queries, but I'm having a hard time understanding how to achieve what I'm trying to do. I'm trying to "boost" certain results in Solr searches that have the field "userId" set to 1. For example, if there we...

Restrict apache access to host name only

I have an apache server running on a dedicated machine. Currently, the machine can be accessed via IP address or domain name. Is there a way to restrict the IP thing? for example, if I type the IP address of my machine, I won't get logged in somehow. but, if i type the domain name my process get requested by apache, otherwise apache wo...

Cascading resource selection using mod_rewrite

I'm looking into setting up an application where there is a core and a project namespace, where core is the default fallback to the project customisation. to this end id like to be able to cascade various resources like css, javascript etc. for the purposes of the excersize, ive simplified this as ./.htaccess ./first/firstonly.txt ./fir...

upload data from excel to access using java

Can anyone give me some idea about uploading data from excel to access database using java ...

Apache | AB | socket: Cannot allocate memory (12)

Hello! I'm doing a ab test ab -n 10000 -c 10 http://www.mysite.com/ this is the output Benchmarking www.mysite.com (be patient) Completed 1000 requests Completed 2000 requests Completed 3000 requests Completed 4000 requests Completed 5000 requests Completed 6000 requests Completed 7000 requests Completed 8000 requests socket: Cann...

Apache server keeps crashing, "caught SIGTERM, shutting down"

This just started happening three weeks or so ago. The content of my website hasn't changed, it's just a phpBB forum using MySQL as a backend. Nothing has changed in well over a year but recently, every two days or so, the server just shuts down and cannot be accessed at all, I have to notify my service provider to physically restart...

How to redirect based on Accept-Language with Apache / mod_rewrite

For language redirects we currently create folders in the web root containing an index.php file which checks the HTTP_ACCEPT_LANG server variable. e.g. for the url www.example.com/press/ in /var/www/site/press/index.php: <?php if ($_SERVER["HTTP_ACCEPT_LANGUAGE"] == "en") header("location: ../press_en.php"); else header("l...

Recovering Apache from a mounted, unavailable NFS Mount

Hello - I have several web applications in production that utilize NFS mounts to share resources (usually static asset files) among web heads. In the event that an NFS mount becomes unavailable, Apache will hang requesting files that cannot be accessed, the kernel will log: Nov 2 14:21:20 server2 kernel: nfs: server server1 not resp...

Tool to check up ssl setup on apache server

My Apache server works fine without -DSSL, but does not start with SSL. This happened after I re-install the certificate because of expiration. (it used to work before) I would love to have some tool to check up if my newer setup of ssl key and certificate is correct or not. That would include permission, ownership etc.. Or is there a...

Apache Config - Exclude Subdirectories

Is there a way to apply a rule to a single directory and not its subdirectories without using .htaccess files? I want /var/www/html to order by the Date desc. However, in the subdirectories, I don't want this rule applied. Right now, I have IndexOrderDefault Descending Date within the /var/www/html Directory tag. ...

MOD_WSGI difficulties on Mac OS X Snow Leopard

I've been trying to get MOD_WSGI working on Apache via XAMPP on my Mac OS X Snow Leopard all day today without any success. I've followed all the instructions, searched the internet for solutions, etc but no luck so far. Below are my exact steps and details. When I run localhost all I get is a white screen. When I remove "LoadModule wsgi...

Can anyone tell me why Apache will not work, for my Django?

I get this problem when I visit my domain.com. I have compared this with my other website with the SAME set-up (just different username!!!) For some reason that website works and this one doesn't. Forbidden You don't have permission to access / on this server. Apache/2.2.3 (Red Hat) Server at www.mydomain.com Port 80 In terms of perm...

Apache Benchmark - Randomized querystrings?

heya, I need to benchmark a site, and was thinking of using ab (Apache Benchmark) to do it. We need to hammer it quite hard, and we're interested more in how our app will cope, as opposed to the network bandwidth, hence we're doing it from localhost. The other thing is, we need to pass in a random list of different query strings: i.e...

How to use errordocument to redirect to a php file in the same folder?

I want to take requests for missing files in a specific folder and redirect them to program.php in that folder. This is a program I will use a lot in different places, and I would prefer to avoid specifying the name of the folder in the htaccess file. I have tried just putting: errordocument 404 program.php but the result is that the...

Accessing URLS by www.example.com/page instead of www.example.com/page.php

What handles the disabling of the extension? Is it APACHE or the PHP install? How would one go about configuring the web server where the .php extension is not required? Is there an option that would make both www.example.com/page.php and www.example.com/page work as the URL? ...

Why aren't my users seeing the latest updates when I release a new version of our website?

Last Thursday we just released a new version of our website. The big change was we converted from Prototype to jQuery. This of course included lots of changes to referenced javascript files. There were new css file changes as well. Unfortunately, many of our customers aren't seeing the changes. I even had one customer clear their browser...

Allowing .htaccess redirects

I have a Vista machine running Apache 2.2, MySQL and PHP. I'm trying to test a WordPress site that has it's database set up in a test area on the internet. I'm able to access the home page and everything works just fine. But I want to set the Permalinks to use 'Month and name'. This works fine on the test site that is on the internet, bu...