apache-config

Running multiple Django projects under mod_python, without using VirtualHosts

I have two django projects on the same machine. They are set up using the standard django/apache/mod_python configuration, basically: <Location "/mysite"> SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /mysite PythonDebug ...

When you made alias in Apache Server you have to write Option: Indexes to Directiory?

When I don't give indexes option I all the time have forbidden message. When I give this option it works well, but I don't have starting page, but page with head: "index of" and below it there are links to files, which are in my directory. Now, how to do, that I will have starting page? Without error. One note: When I don't use Aliasin...

prevent *.bak *.inc file upload from a apache server

Is it possible to prevent people from seeing files like .bak from am apache directory ? If there is a request for the url (http://foo.com/bar.bak), it'd be good to have a 404 error, and prevent anybody to upload the file. ...

Serving files with naming conflicts

I'm trying to duplicate something that's being done on a website that seems a bit weird. They are serving both h**p://site.com/script.php AND h**p://site.com/script.php/file1 This doesn't seem to make any sense to me. script.php is clearly a PHP file that will get interpreted and have its output returned. file1 seems lik...

cannot render serverfbml in Linux (ubuntu + apache2 + asp.net mvc)

I am writing a facebook application. The application is written in ASP.NET MVC. For the compatibility reason, I chose to use .NET 3.5 instead of .NET 4 (Because the application will be ported to Linux with MONO, which previous supports up to .NET 3.5). In the end of the applicaton, user will see a friend selector to send invitation. Plea...

howto stop apache matching /favicon with /favicon.ico

Hello I have site running with apache mod_rewrite and php In my public_html folder i have diss .htaccess file RewriteEngine On RewriteBase / RewriteRule ^([0-9a-z]+)$ index.php?reurl=$1 this works fine if there are no files in that directory with the same name. so for example /favicon would match the file /favicon.ico and the Rewr...

Configure apache to listen on port other than 80

I want to configure apache to listen on port 8079 I added LISTEN 8079 directive in httpd.conf I opened 8079 port in iptables / restarted iptables etc. I even stopped iptables service. "netstat -nal | grep 8079" shows "tcp 0 0 :::8079 :::* LISTEN" Now, if I try to access http://localhost:8079 or http://myserver.com:8079 from that machin...

CakePHP webroot not accessible on new Apache setup

I've just set up a new Ubuntu 10.4 slice on Slicehost, and have installed apache, mysql and php. I've uploaded my CakePHP app and everything is running fine, except for the webroot being inaccessible. I have tried adding AllowOverride to all in /etc/apache2/sites-available/default and followed the Cake instructions to httpd.conf by addi...

Enable HTTPS connections?

I don't knwo much about server maintainance and configuration, but i just started using one form mediatemple VE-Server...everything is fine and easy btu i dont get how can i enable the https connections... if now i type https://mysite.com/login.php it doesnt work (page not found) ...

Add computer name(instead of ip address) to Apache2.2 permission list

Hi, I am using Apache2.2 to load a maven repository. For security reason, we need to restrict the access of the repository. To do that, we set a list of allowed access IP address in the apache foundation\2.2\conf\extra\httpd-restriction.conf file. The problem of that is some users IP address keep chaning and cannot gain access to the r...

Setting subdomain in ubuntu in LAN

I have created some domain in /etc/hosts files 192.168.0.11 domain-11.com 192.168.0.12 domain-12.com 192.168.0.13 domian-13.com and also created a files in /etc/apache2/site-avalaiable/ in respective machine like in machine 192.168.0.11 added a file domain-11.com my /etc/apache2/sites-available/domain-11.com files contains <...

When I'm using VMware Workstation, Can I access the localhost of my Guest server from the Host?

I'm newbie to the linux and apache server configuration so please give me some advice. I installed VMware in my WinXP and installed CentOS5 to it. After I set up Apache server in my CentOS, I can access that server from my CentOS(of course). But is there a way to access that from my Windows? I think that is definitely possible if some...

Restart httpd after changes in the httpd.conf

Hello, Do I need to restart httpd after changes in the httpd.conf file for changes to take effect? Thanks Jean ...