apache2

XAMPP (LAMPP) server not serving php files properly, browser tries to download the script & weird behavior

Hello everyone, I'm starting a new project using Linux and PHP, but for the early dev state i'm now, I'm trying to use XAMPP for now. I'm Running Ubuntu 10.04 x64 on a laptop, And got everything I need. The site I should build is based upon CodeIgniter and some implementation of smarty, but I think this is not that important because the...

mod_rewrite rewriting a url

Hay, can someone lend a helping hand to get a rewrite rule to work? I'm developing a CMS and the URL currently look like this page.php?id=2/About-us I want to remove the page.php?id=2/ part of the URL and just show About-us Any ideas how to get this working? EDIT I have since changed my URLS to page/PAGE_NAME and used th...

How do I debug an uninformative error message in apache/php?

Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown on line 0 Is the error message, as far as I can see I don't have it in my code/.htaccess file ...

Where to get latest SVN bindings against Apache 2.2 ?

Auld lang syne, it was possible to download pre-compiled bindings (binaries) of SVN against Apache 2.x on subversion.tigris.org Where now? ...

How can my Apache 2 module tell if it is being called via an SSL request?

I have a module that needs to return a reference URI in its payload. If called via an SSL connection, I need to build a URI that has the https prefix. I can easily get the port number from the request, but the problem is the user could have picked any port for SSL (and in fact this particular Apache instance always starts out with a non-...

Handling Tomcat Errors Through Apache

I use Tomcat for hosting my web application and use apache http server on top of it using mod proxy for load balancing. When my application throws a 404 or 500 error, I want to serve the error pages through apache http server rather than tomcat server. This is because I am serving all of my static content through apache and we don't wa...

Modifying Apache config file using bash script

I'm currently writing a script to automate our CMS setup and deployment. Part of that process is adding an alias to Apache2 which is normally done manually via Webmin. At current, I'm looking to append a line into the Apache2 include file that stores all the alias, using the following: echo Alias /path \"/var/www/directory\" >> alias.i...

Why does apache not process multiple requests from the same browser simultaneously

I'm not quite sure how to phrase this question correctly, so I'll start with the scenario I encountered. I have a bit of processing in my web app that takes longer than I'd like the user to wait to have control of the page again, so I decided to have it processed by an ajax request. The problem is, even though I offloaded this reques...

apache mod-rewrite file name change

Hello all, This is probably straight forward for someone who know apache mod rewrite and regex but that someone is not me. This is what I am looking for : I just want to re-route image,css requests to one shared repository image/css file. e.g. we have 6-7 sites which can be on same server or different. Currently, image looks like thi...

URL rewriting for different protocols in .htaccess

Hello. I need help with url-rewriting in .htaccess. So the issue is about different protocols: https and http. The main purpose of rewriting is to remove "www" from URL, but protocol should stay the same it was before. For example, when I have URL like http://www.domain.com/request, it should be redirected to the http://domain.com/req...

How to deploy a WAR file into Apache 2.2

Hi there! My server is an apache 2.2 who serves php applications, now I would like to configure it to serve J2EE applications as well. I think there is an Apache module to deploy WAR files into it, Could anybody help me? Thanks ...

Can't access JavaScript files on built-in Apache server on Mac OS X Snow Leopard

I've just enabled Web Sharing on my Mac OS X Snow Leopard box. HTML files load up fine, but I'm getting a 403 error on JavaScript files. I've already tried changing directory permissions in the httpd.conf file but that didn't solve anything. ...

mod_speling internal redirect, or how to handle caps with mod_rewrite

I have this rule: RewriteRule ^(panel|admin|site)/([A-Za-z0-9]+?)/(scripts|assets)/(.*)$ Project/$2/Public/$3/$1/$4 [L] The idea is to allow access to public assets as they exist inside modules of code. The only issue is that the naming scheme requires title case (lets assume this is unchangeable). Hence, a request to: /site/users/sc...

My Rails 3 site won't start on Ubuntu/Apache2/Passenger

This server runs on Ubuntu 10.04, particularly on Linode VPS. Passenger Error: A source file that the application requires, is missing. It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded. A required library may not installed. Please install all libraries ...

[Android, Dalvik] Problem with basic access authentication in file downloader.

Hello everyone, I'm having problems with downloading binary file (zip file) in my app from te internet. I have to use basic access authentication to authorize acces to file, but server response is always HTTP/1.0 400 Bad request. String authentication = this._login+":"+this._pass; String encoding = Base64.encodeToString(authentication.g...

Subversion: good practices to administrate users and groups with the repositories

How should I administrate users and groups with the repositories? Until now users can access the server repositories through http. The tag configuration it inside /etc/apache2/mods-available/dav_svn.conf <Location /srv/svn/> DAV svn SVNPath /srv/svn/projecX #SVNParentPath /srv/svn #if I have more the one repository inside the folder Au...

apache rewrite conf.d

Hi guys, I have a question about the damn configuration of apache (I HATE IT). I have a cms that hosts multiple domains on the same port. What i am trying to do is getting all domainnames on port 80 to be send to port 8080. Also i have a cash dir based on the domainname and before all this a rewrite that strips the www. from the do...

How to set apache web server to generate rolling log files?

Hi, i have my application installed on a windows server, under apache web server. This project is facing a performance issue now, It is responding very slow. Web application is installed in Jboss, and apache webserver communicates with jboss via AJP protocol. I am studying why this performance problem is hitting my web application. Ove...

public folder rails 3 not "visible" to the web

Hi guys. I am deploying a new rails app. But i have a problem. In my routes file i have the following (at the end of the file): match '/:id(/*path)' => "websites#index" in development everything works great! but i am now switching to production and the files in the public directory can not be accessed. For some reason those reques...

mod_rewrite not sending Vary: accept-language when RewriteCond matches

I have a rewrite rule which redirects to / if no accept-language is present and someone attempts to visit ?lang=en. It works fine, except for the headers returned. Vary: accept-language is missing from the response. RewriteCond %{HTTP:Accept-Language} ^$ RewriteCond %{QUERY_STRING} ^lang=en RewriteRule ^$ ...