apache2

What Virtual Host Definitions do I need to support subdomain.mydomain.com and *.mydomain.com on the same IP Address on Apache 2?

I have a virtual host setup on Apache 2 like so (simplified): <VirtualHost *> ServerName domain.com ServerAlias *.domain.com DocumentRoot /var/www/domain.com/html </VirtualHost> <VirtualHost sub1.domain.com> ServerName sub1.domain.com DocumentRoot /var/www/sub1.domain.com/html </VirtualHost> <VirtualHost sub2.domain.com> S...

PHP4 for Apache 2.2.9 in Ubuntu server 8.10

Hi, I recently moved from a windows based development environment to an ubuntu one. I need to have both PHP4 and PHP5 available (PHP4 is a company requirement, so not much I can decide about it). My problem is that I can't install PHP4, as it's not available as a package an it seems that the only way to get it would be to compile it. Can...

Disabling non-secure access for only one URL on one instance of apache

For example, one instance of apache is managing www.site.com/folder1/a.html www.site.com/folder2/b.html www.site.com/folder3/c.html I need to make sure that access to www.site.com/folder3/c.html is https only. All these folders are in the same document root. Is this possible? If not, what you recommend as the minimum changes necessa...

Apache Redirect Rule Always fires on every request

So the following rewrite rules always seem to fire. This has the effect of hiding another domain that I am hosting on the server? I can't seem to figure out what's wrong and it is time to call in the experts: RewriteEngine on RewriteCond %{HTTP_HOST} ^danielhonig.com RewriteRule ^(.*)$ http://www.danielhonig.com/$1 [R=permanent,L] Re...

How to fix Apache instability ?

I have configured a simple LAMP stack on Debian and I am experiencing some problems with the Apache web server. Each 3-4 hours the web server is entering a deadlock and all the requests that hit the database block. The server is creating a new child for each request. The number of processes increases very quickly. After a few seconds M...

subdomains w/o TLD

How do i set up a subdomain w/o a TLD? i have this set under my main config <VirtualHost *:80> ServerName bbs.67.777.777.777 #fake bc my server can easily be hacked ATM :( DocumentRoot /var/www/phpBB </VirtualHost> when i goto bbs.serveripaddress i get a Address Not Found error. if i put that above my main config it still does...

phpmyadmin - save file to disk

when i point my browser to http://localhost/phpmyadmin, instead of showing me its front page, it comes up with save as dialog. I'm running: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch13 Server I've reinstalled both apache2 and php5. After re-install i don't have httpd.conf file, how can i get it back? Is there a standard file which i can ju...

Are Apache httpd modules binary-backwards-compatible between versions?

Can i (for example) use mod_proxy of version 2.2.10 with an otherwise unchanged 2.2.8 apache distribution under windows? ...

Removing a file in a Restricted Folder in Linux

I have been attempting to create a new directory for my apache server. As I tried to access the new directory, I type: sudo /etc/init.d/apache2 restart But I obtain this error in the Ubuntu Terminal: Syntax Error on line 1 of /etc/apache2/conf.d/fqdn.save: ServerName takes one argument, the Hostname and port of the server. As I inves...

Getting started with Tomcat docs

Are there any good "Getting started with Tomcat" documents/tutorials/sites? The official docs are horribly written and jump from the intricacies of compiling Tomcat to how you should lay out your site on disk. Specifically I want to get Tomcat serving through Apache httpd. ...

Authentication for a browser-based application dependent on the client machine

How do you make the authentication for a browser-based application dependent on the client machine? Say the admin can login only from this machine. Assumptions: There is complete control over the network and all machines (client and server) involved. I am looking for an apache/linux solution. ...

Kerberos Authentification in PHP

Let's just assume that I don't know much about Kerberos - just the basics. I have... Debian Linux 2.6 Webserver Apache 2.2 mod_auth_kerb/5.3 PHP/5.2 a (working) Kerberos Realm Windows Client Firefox 3 an logged in identity "[email protected]" in MIT Network Identity Manager How do I use this information in a PHP script so that...

How do I make my Apache 2 server force a browser to open a file transfer dialogue?

How do I make my Apache 2 server force a browser to open a file transfer dialogue if the URL points to a file with a .pln or .psa extension? I have a simple LAMP server with CentOS 5, Apache 2, MYSQL 5, PHP 5, recently built CentOS 5.2 i386 installation CDs. My web application generates files to be downloaded and imported into a custom ...

URL redirection in Apache2

Hi, Trying to redirect a URL on one webserver on my LAN to another webserver on my LAN. I assumed that all I needed was a .htaccess file in my /var/www directory whose contents are the following 3 lines only: Options +FollowSymLinks RewriteEngine on RewriteMatch newsite\.level2\.level1\.com http://192.168.0.250:8080 Also I created a...

How do you mix Phusion Passenger in a mod_perl virtual host?

I have a VirtualHost which sets the handler for Location / to a PerlModule to deploy a catalyst application. I want to convert the catalyst application to rails, but gradually. The front end is all javascript using the ExtJS Framework, and the backend only serves JSON. This will allow for a gradual transition as long as the JSON is i...

free statistic website for analysing traffic

I am searching for a program like Google Analytics or Clicky which runs on my own servers. I have used awstats, which looks really old. It doesn't have to be open source but I would prefer something free. If possible it should also analyse my Apache Logs. ...

Is it smart to always redirect to https?

I am working on a project where the user will transfer his username to activate the internet. I want to always redirect the user to the https version and make the http version redirect to the https aswell, so there is only an http version. Is this a smart move? Could there be problems with mobile devices (WiFi enabled devices) Thomas ...

Apache (xamp) and IIS cannot work together

I have XAMP 1.6.8 and IIS 5.0 installed on my PC(Windows XP SP3). I'm unable to run them simultaneously. If IIS service is running, Apache throws the following error: (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. : make_sock: could not bind to address 0.0.0.0:80 no listening sock...

Using negation in LocationMatch directive

Our site is running on apache and is secured using client certificates. So far there was only one certificate that would provide access to the whole site. Now, we have a requirement to expose jira to a new group of users who should not be able to access anything else but jira. I created a separate certificate for that group and planni...

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...