apache2

JavaScript content-type

When I add JavaScript files to web pages, I have always done for example like this: <script type="text/javascript" src="/js/jquery.min.js"></script> <script type="text/javascript"> // Custom script </script> But today I discovered in the response headers that JavaScript are actually served as application/javascript. Why is that? I...

Enabling dtrace on Apache on FreeBSD

HI i am using freeBSD as my operating system.I have apache version 2.2.16 installed on it.I want to make this dtrace enabled.How can i do this.Thanks in advance ...

How to implement clickonce using Apache on windows

I am trying out click-once on my local machine using Apache 2.2. I have added following to httpd.conf AddType application/x-ms-application .application AddType application/manifest .manifest AddType application/octet-stream .deploy AddType application/octet-stream .msp AddType application/octet-stream .msu. I have given the publishin...

Create user page at subdomain

How to implement automatic page creation on a subdomain when a new user registers on the site? (Working in Python on the Plone CMS and Zope web app server) ...

Apache Sticky sessions

I have configured a sticky session set up with a load balancer (Apache) and three app nodes running Jboss 4.2.2 . the load balancer uses mod_jk and settings as mentioned in the tutorial here. http://community.jboss.org/wiki/UsingModjk12WithJBoss;jsessionid=1569CBFB7C3096C59C977CD3F7159A32 I have the jumRoute set as node1 ,node2 and nod...

.htacess rewriting with the [P] proxy flag

Hello. I am trying to do an invisible (transparent ?) rewrite via .htaccess and the proxy flag. It works with the [R] flag but not with the [P] flag because it just gives a 500 error. The two domains are on separate servers and the mod_proxy module is enabled. Is my .htaccess correct ? Options +FollowSymLinks RewriteEngine On RewriteBa...

Server returning no response for certain URLs for Rails app on Apache2

I just implemented a new controller in Rails, and added routing info to routes.rb. Things work fine when I access the new URL on my local machine in dev mode. However, after pushing the changes onto my prod server and attempting to navigate to the URLs controlled by the new controller, I get no response from the server. I've tried restar...

PHP Apc causing kernel panic

Hey Guys, We are running APC as an opcode level cache , and have been getting kernel panic's (Shared memory segment related). I thought that anything running in the user space (PHP , APC , Apache) could not cause a kernel panic. I have managed to replicate this issue on different hardware and environments. My questions are 1, Why woul...

best way to setup a webhook to restart apache for a django server

I first tried to use django and then django-webhooks to call a shell script that restarts the server. This didn't work, because the webpage hangs when the server restart is called, as django is reloaded. Then I used fastcgi and python alone to create a URL that calls the shell script. I know the python script works when I run it on the...

[.htaccess] - Define "AuthUserFile" with an environment variable

Hello everybody ! Do you know how I could do to use a variable to define the AuthUserFile in a .htaccess file ? Like : RewriteRule ^ - [E=BASE:%{DOCUMENT_ROOT}mysite/www/] AuthUserFile %{ENV:BASE}admin/.htpasswd It don't work... Here is my full .htaccess file (if you want to understand why I need to do that) : Any help would be real...

How do I restart apache from a webpage apache is serving?

I have a script server side (both a shell and a python script) that can restart Apache and do some other cleanup I need. However, I want to expose a webhook, so when my repository is updated, then Apache will be restarted. However, I am currently serving the URL that restarts Apache using Apache, and when the script stops Apache or kills...

Cannot access Symfony Framework from Remote Machine

I just installed Symfony framework on my laptop (running Ubuntu 10.04) but I want to be able to develop it from windows machine. Here is my apache config file for the site: # Be sure to only have this line once in your configuration NameVirtualHost 127.0.0.1:8080 # This is the configuration for your project Listen 8080 <VirtualHost 1...

will restarting apache clear my memcache contents?

I just wanted to know if memcache is linked to apache or it runs as a separate process. So, will restarting apache clear my memcache contents or not? ...

How do I configure Apache to use a new version of PHP?

After downloading, building and installing a new version of PHP5 on a SuSe Linux distribution, I can not get Apache to recognize it. Why isn't mod_php5.so being overwritten? Or do newer versions of PHP use a different so? ...

Php and apache max_clients

Hello All, I am really new to php, I have recently developed a reliability simple web interface to manage personal profiles for our robotics team. Today was opening day, there is a few less than 40 members on the team and there were less than 25 at the meeting today. When it was my turn to talk, I had everyone go to the website, regi...

CodeIgniter 2.0 friendly URLs not working on Mac OS X Snow Leopard

For some reason in CI 2.0 the URLS do not work. http://localhost/myapp/ - will open the default controller (bc it finds index.php) http://localhost/myapp/index.php/home/ - will open the default controller http://localhost/myapp/home/ - will show path not found I am not sure if this is a problem with 2.0 or a specific problem with my ...

Problem with Django using Apache2 (mod_wsgi), Occassionally is "unable to import from module" for no apparent reason

I have put my Django web site up to my web server and have it set up using apache2 and mod_wsgi.. everything works fine most of the time but occasionally it will just give the error that it can't import a module (usually from my views file). However, it's not an issue with that module as it usually works, for example, I will get the erro...

Apache error "Parent: child process exited with status 3221225477 -- Restarting." No PHP or MySQL

Hi, I'm running Apache 2.2.14 on Windows Server 2003, without PHP or MySQL, basically to proxy as a web server for a Java web app. Every few hours or so Apache restarts with a message [notice] Parent: child process exited with status 3221225477 -- Restarting. This (or very similar) issue seems to be most common for Apache/PHP/MySQL comb...

django directory apache2 permissions

Hey I just got apache2 working with mod_wsgi on my django_project directory, which is pretty kool. However I can only make it work if I set the permissions on my django_project to chmod -R 777 django_project not so nice I believe. Can anyone tell me what chmod -R xxx django_project I should be running. Im not too tight on the whole ...

Creating a symbolic link in Sites directory

I have a file in my ~/Sites directory that works fine when I browse to it through coderama.local/~coderama/index2.php Now I want to get tricky and move my index2.php file to somewhere else on my system, so I do this by creating a symbolic link. However, when I try to access coderama.local/~coderama/index2.php I now get the following err...