apache

How can I extract external referrers from an Apache access log with Perl?

I need some help getting a regex working to parse all referrers from an apache access log file which come from real links offsite and which are valid referrals from real people rather than bots or spiders. I'm working in Perl. This bit of code almost works already [the access log is opened with the filehandle $fh]: my $totalreferals = ...

When to prefer Xampp over a complete installation of Linux, Apache, MySQL, PHP

In which cases, except development, would you prefer Xampp over a complete installation and configuration of Linux, Apache, MySQL, PHP. ...

How to test that I configured Subversion Path Based Authorization in the right way?

The problem is about security settings of the Subversion repository served trough the Apache web server. I use the Path Based Authentication to protect some company information from external collaborators. I need something that tests that the authorization is given the people I want, i.e. I need to check that I hadn't make mistakes in t...

Subversion for web development

I've read a lot of articles about subverion and pushing the information to a web server and I'm still having difficulties. I can understand the basics about creating the repository and checking out etc but need help for the web server. I'm running apache and subverion is running on the development server I'm working on. Now do I creat...

mod_rewrite rules and content negotiation

I am relatively new to mod_rewrite, but have a site which I would like to have "pretty urls." Similarly to SO :). I am attempting to have things like: "http://www.whatever.com/search/test" get rewritten to "http://www.whatever.com/search.php?q=test" and have had some limited success. I believe that content negotiation is getting in my w...

Why would Apache be URL decoding my query string?

Hello, My Web host has refused to help me with this, so I'm coming to the wise folks here for some help "black-box debugging". Here's an edited version of what I sent to them: I have two (among other) domains at dreamhost: 1) thefigtrees.net 2) shouldivoteformccain.com I noticed today that when I host a CGI script on #1, that by th...

Apache/Tomcat - LDAP Authentication based on AD Group Membership

We currently have an Apache/Tomcat (5.5) application running and we're using the LDAP authentication feature (by configuring the realm) against a multi domain structure and it's working great. One thing we would like to do is limit access to users based on their membership on a specific group in AD. Basically, only users of GroupA will...

How can I redirect requests to specific files above the site root?

I'm starting up a new web-site, and I'm having difficulties enforcing my desired file/folder organization: For argument's sake, let's say that my website will be hosted at: http://mywebsite.com/ I'd like (have set up) Apache's Virtual Host to map http://mywebsite.com/ to the /fileserver/mywebsite_com/www folder. The problem arises whe...

Apache2 Undefined Charset UTF-7 XSS Vulnerability

Does anyone have an idea how can I fix this vulnerability in Apache 2.2.4, without upgrading the Web Server? This is what I found about it on the net at SecurityReason. The fix suggested by them is to upgrade it to version 2.2.6. But the server is live and upgrading t is the last resort. Apache2 XSS Undefined Charset UTF-7 XSS Vulne...

Install multiple Apache Instances on a single Windows 2003 machine

On my server I have installed a web application that comes with a bundle of Apache Services. Hence all the apache related dlls are located in the application folder's sub directory (e.g., C:\Program Files\MyWebApp\apache2). It seems that when the windows 2003 server is started all the request will be served by that apache services. Now ...

Website image caching with Apache

How can I get static content on Apache to be {cached by browser} and not {checked for freshness {with every request}}? I'm working on a website hosted on Apache webserver. Recently, I was testing something with headers (Content-Type for different types of content) and saw a lot of conditional requests for images. Example: 200 /index.ph...

Where to get/How to build Windows binary of mod_wsgi with python 3.0 support?

I wanted to experiment a little with python 3.0 at home. I got python 3.0 working, I've played around with some scripts, and I thought it would be fun to try to make a small web-project with it. As I was googling, it turned out, that mod_python, for some reasons, will not be able to support python 3.0. The only other alternative I've f...

What is the difference between DoS and Brute Force attacks?

Hello guys, I was reading about DoS attacks on Apache servers but the "Brute Force" word pops up sometimes I know DoS attacks but "Brute Force" seems to be similar, is there a difference or it is just another word of DoS ?? ...

Apache Roller Weblogger software- Can anybody have the information!

Hi, I am creating a blog using Apache Roller Weblogger software, am very new to this.. I am deploying it on the Tomcat, and m using the PostgreSQL database.. I did all the configuration in the roller-custom.properties.. If i give the url http://localhost:8080/roller/ in the browser I am getting the resource not available error, And in t...

Limit number of concurrent connections in Apache2

Is there a way I can limit the number of concurrent connections to the Web Application running on my Apache Server. My server version is Apache 2.2.11 ...

mod_rewrite, .htaccess connecting to mysql database

I would like mod_rewrite in an .htaccess file to link to a mysql database to provide me with mapping information. Specifically, I am using a single code base to host multiple sites so..if a user requests an image, for example: http://www.example.com/images/car.jpg this is going to hit my server and many other sites will also be hitting...

Detecting https requests in php

The problem that I am having has to do with the need to keep some urls of a website protected by https and the rest kicked to http. Normally, you have $_SERVER['HTTP_HTTPS'] or $_SERVER['HTTPS'] (depending on your flavor of Apache). You also can check the port - it's 80 for normal traffic and 443 for https. My problem is that the cert...

I have installed Zend Framework and need to set up include path in PHP?

I have dumped Zend Framework files in "home/hotbuzz/public_html/include/zend/" My hosting : linux I want to load it in my script. Whenever I load I get this error. Some info: I asked about my Zend, to hosting guys they said its located in "usr/local/zend" But I want to use this home/hotbuzz/public_html/include/zend/ I had added ...

After a RewriteRule to a PHP script, do an internal redirect from within the PHP

Hello, I have some mod_rewrite rewrites that correctly redirect the URLs to a script. From within the script, I want to go to a different file without causing another request/changing the URL. I have experimented with Location and meta refreshes but they are not as smooth as desired. Is there a way to change to the script or even retur...

Can I run no-parsed header scripts under Apache 2.2.9 without the nph- preface?

I have a basic Apache 2.2.9 setup under fedora core 8. I would like to set my own HTTP headers to come out (HTTP Forbidden / 403). If I name the file nph-foo.pl, it works. If I name the file foo.pl, it fails and I get a server error, type 500. According to all web references I've found, the nph-filename convention was no longer necess...