apache2

Selectively configuring Apache 2 mod_headers for Google Chrome Frame

I am currently evaluating Google Chrome Frame and so far i'm happy with it, but what i'd like to do is selectively use it for certain sections of my website. Some sections require ActiveX so need to be viewed in native IE, whereas others benefit greatly, and may end up requiring, Chrome Frame. I've currently got the following configure...

How server manage different user's requests at a time?

can you tell me how server handles different http request at a time. If 10 users logged in a site and send request for a page at the same time what will happen? ...

Apache configuration files PHP library

Is there a PHP library that allows modification of the Apache configuration files from the PHP script? Thanks! ...

SVN Write Authentication using Trac Permission Groups

I'm starting up a small open source project and I have a repository and Trac instance running already. I installed the AccountManager plugin and I have the RegistrationModule, because I want users to be able to make accounts and submit tickets even without increased permissions (aka I want bug reports to be filed by anybody). I've set u...

How to run a PHP file on my computer that is outside the htdocs directory ?

I just installed Apache and PHP on my computer to be able to run PHP files locally. I can run a PHP file if it is located in Apache2.2\htdocs directory. Is that possible to run PHP files outside this directory ? I'm looking to a simple solution, because all I need is to write a small PHP code and try it locally. I would like to be ab...

How does Apache 2.0 license differ from GPL?

I don't know much about the full GPL license other than that it's very restrictive to anyone wanting to use GPL anywhere near closed-source code. How does Apache 2.0 license compare with GPL and other license like LGPL, MIT, etc? ...

Changed the AllowOverride to All and still nothing

I tried to write a .htaccess file on my local pc's website, I've realized I need to set AllowOverride All instead of None searched, found the file /etc/apache2/conf.d/security in the file I found #<Directory /> #AllowOverride None #Order Deny,Allow #Deny from all #</Directory> changed it to <Directory /> AllowOverride All Or...

Apache Deflate - does it wait for the whole page to load first?

I set up a server to use the Apache2 deflate recently. Some people started reporting long waiting times on certain pages. The page in particular is one that takes a long time to load, as it's gathering data from external sources. Usually it loads progressively, which is good for user feedback. The whole page can take 10-15 seconds to f...

Rewriting subdomain to subfolder with htaccess

I'm attempting to use .htaccess in the root folder of an Ubuntu/Apache2 server in order to mask a subdomain to subfolder and I keep getting a 500 Internal Error. I know that I'm doing something stupidly wrong and it is some silly error causing the problem. I've checked all of the similar threads on SO and online and whenever I try their ...

upload analogue with XSendFile?

Is there some way to use something similar to x-sendfile for uploading files, e.g. saving particular stream/parameter from request to file, without putting it wholly into memory? (In particular, with apache2 and ruby fcgi) ...

ServerAlias www.example.com is not recognized

Below is my config file: NameVirtualHost 12.34.56.78:80 < VirtualHost 12.34.56.78:80 > ServerAdmin [email protected] ServerName domain1.com ServerAlias www.domain1.com DocumentRoot /srv/www/domain1.com/public_html1/ ErrorLog /srv/www/domain1.com/logs/error.log CustomLog /srv/www/domain1.com/logs/access.log com...

What is the best way to implement a 'last seen' function in a django web app?

I have a running django/apache2 + memcached app (ubuntu) and would like to keep track of logged in users that are online. What would be the best way to track this? I would prefer not writing to the database each time a logged in user loads a page; but what other options are there? ...

What is causing Apache2 to display PHP as plain text in this config file?

I am trying to run PHP and Rails in the same virtual host, however, PHP is being displayed as plain/text. When I create a test host without all the rewrites and proxy-ing, Apache2 will process the PHP as desired. Where in my config file have I gone wrong? <VirtualHost *:80> #ServerName staging.domain.com #ServerAlias www.domain.com ...

Where to place web server root?

Hello everybody, I've just made an upgrade and now partly thinking on web-server directory structure for local workstation for web-development on linux platform. Running multiple hosts and different projects required. Where is it better to put all the server's docroots? /var/www? /srv? /www? I plan to make it as separate partition - cou...

pdf errors with php, apache2

Hi-- I'm seeing some strange behavior from some dynamically generated PDFs using the TCPDF library in PHP. Standard lamp stack-- however, if you try to open the PDF from Windows with Acrobat Reader, it gives an error that the "file is damaged and could not be repaired". From Mac, Linux, etc. the file works fine, and opens fine. It also ...

headers already sent displays after moving files from one server to another

hey there! I have a project running on dreamhost hosting and it's working fine, but since DH has been getting really slow I'm moving the project to my new dedicated server. The thing is that after I move all of my file over to the new dedicated (ubuntu 8.4) I get see warnings all over the place telling me that the headers had been alre...

Kohana 3 download file from another server

Hi All, I am using Kohana 3. Up to now my downloadable files were residing in my application document root. So far using $this->request->send_file($download_file); it was working perfectly right. But now my downloadable files are on another server can be accessed using http say http:://www.test.com/download/test1.doc. So Kohana's $thi...

Set a session hash outside of RoR program?

Hi, I have had my new rails program up for a few days now. I'm running it on Ubuntu 10.4 with apache2 in another location than the website it's made for (it's a standalone database application for physiotherapists). The people I made it for now want me to deploy it to the public part of their website, only with one change. Those who open...

Issues in using 3rd party libraries while developing Apache Modules

Hello everyone! I am writing an Apache module for my internship. I am using C for this (I am not acquainted with Perl or Python that much). I need to use an HTML Parser to solve the problem for which I am writing this module. I am considering libxml2 for this purpose. I am confused how should I link the library in my module ? Should...

jsp (java server page ) on apache2

Is it existing some module for jsp(java server page) like (mod_python, mod_asp, mod_perl,...) for apache2 on windows. Without installing another web server. ...