apache-config

(django initial setup) Django installation is redirecting all traffic to django page, fix?

I'm a complete newbie to Django. I've been trying to get it working on my Ubuntu server. everytime someone my server, it redirects to the "Congratulations on your first Django-powered page." It completely ignores the index.html file in the www directory. Why is that? Is there a away to make it so that it only goes to the django page whe...

mod_rewrite with subdomain and url pattern

Hi everyone, I want to use the subdomain as a get variable with mod_rewrite AND use some parameter : eg /page/language/site/counter -> index.php?o=operator&lg=language&s=arg1&c=arg2 How to do that with mod_rewrite? RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteCond %{HTTP_HOST} ^([a-zA-Z]{3,6})\.example...

Why won't my Ruby files execute on my server?

I have a basic Dreamhost account as well as an iMac running Apache2/Rails/SVN/et al. I can only get my Hello World Ruby script to execute in my iMac's cgi-bin. Dreamhost doesn't have any cgi-bin that I'm aware of. I've CHMODed the .rb file to 755. I've tried both a shebang line that points directly to Ruby and another that uses the...

index.php not loading by default

I have just installed centos, apache and php when I visit my site http://domain.com/myapp/, it says "forbidden" by default its not loading the index.php file. When I visit http://domain.com/myapp/index.php, it works fine. Any idea how to fix that issue ? ...

Can I turn off an Apache Directive then turn it on in an include?

I have a VirtualHost block that includes common configuration items, one directive is ProxyPreserveHost. Can I "procedurally" turn off ProxyPreserveHost for a Rewrite directive then have the include turn it back on? For example: <VirtualHost *:80> ServerName www.blah.com ... ... ProxyPreserveHost off RewriteRule /somepath http://otherh...

MPM Prefork Apache Uses Absurd Amount of Memory

Help! My apache processes are all using 115MB of memory on startup. Relevant information: Linux version (uname -a) Linux 2.6.31-14-generic-pae #48-Ubuntu SMP Fri Oct 16 15:22:42 UTC 2009 i686 GNU/Linux Apache version (/usr/sbin/apache2 -v) Server version: Apache/2.2.8 (Ubuntu) Server built: Mar 9 2010 20:45:36 Top display (top...

PHP : How to understand bitmask value of access from ini_get_all function

i'm start to use ini_get_all function to retrieve all configuration option on a shared host server. in the end i got this chunk of array : [allow_call_time_pass_reference] => Array ( [global_value] => 1 [local_value] => 1 [access] => 6 ) [allow_url_fopen] => Array ( [global_value] => 1 ...

Server port 16080 problem: webserver adds the port number 16080 in the URL

Hello everybody. On my wordpress website one little thing doesn't work. Sometimes the Webserver adds the port number 16080 in the URL, which leads to an error (network timeout). Wrong: http://www.example.com:16080/about-us/weekly-program/?month=may&amp;yr=2010 Correct: http://www.example.com/about-us/weekly-program/?month=may&amp;yr=20...

Abstracting AuthLDAPBindPassword from .htaccess

I have several .htaccess files that use mod_auth_ldap for authorization to different files/directories. They bind to LDAP with a username/password. Is there a way that I could set the AuthLDAPBindPassword in the Apache config instead of in each .htaccess, so that I don't have the password in a bunch of places? I'm thinking that I could...

Regex - how to match everything except a particular pattern

Hi, I'm using Apache and I want to redirect all received request to the ssl virtual host. So I have the following line in the regular http virtual host: RedirectMatch (.*) https://www.mydomain.com$1 which basicaly replace $1 by everything. It works perfectly. But now, I need to access a particular CGI that cannot be on the SSL vi...

Apache configuration to allow acess of my website from any domain

I own a dedicated server(virtual) with media temple. There is a main url of the website lets say xyz.com. When I point any other url say abc.com to the ip(say 1.2.3.4) of xyz.com, then the website xyz.com should open up. Currently if i configure abc.com to point to 1.2.3.4 then the media temple configuration page comes up. If I add an a...

how to allow unamed user in svn authz file?

I have a subversion server running with apache. It authenticates users using LDAP in apache configuration and uses SVN authorizations to limit user access to certain repositories. This works perfectly. Apache DAV svn SVNParentPath /srv/svn SVNListParentPath Off SVNPathAuthz Off AuthType Basic AuthName "Subversion Repository" AuthBasicP...

How can I make a virtual host accept multiple domains?

I have two different domains I want to use for this website, how can I configure the virtual host to make this work? Is it possible to assign it more than one server name? Help! ...

Deployed a Zend App on EC2 and its not working

Hey Guys, I'm confused about the problem and not sure if I can provide enough details. I have a php app built on Zend framework which I've successfully deployed on other hosting companies. I am now trying to move to Amazon EC2 I moved all my code and set my domain to point to the IP address. So far so good. Now when I access my home p...

apache mod_rewrite rule in httpd.conf for modifying some paths, but not others

I'm having quite a challenge creating an appropriate rewrite rule for Apache/2.2.14 on Fedora 10. I'm working through the CodeIgniter-Doctrine tutorial which uses an .htaccess file. (Search for Removing “index.php” from CodeIgniter urls about 10% down.) But since that's not recommended for a production server, I'm trying to tweak it to...

Make Apache server available on a LAN via custom ServerName

Hi, is it possible to set up an Apache server on a machine which is part of a LAN, then allow machines on the LAN to access the server via a custom ServerName (instead of Localhost). I want to serve a simple website in an office space using a short ServerName (no ports etc if possible), but I want to make sure this is possible (after ori...

Apache ErrorLog display of "file not found" on ErrorDocument redirect / Landing Page implemenation

I'm trying to clean up our ErrorLog to eliminate entries stating "File does not exist" when the corresponding access log entry shows 301 (redirect). The message is correct in that the requested file doesn't exist, but our custom ErrorDocument is redirecting the user to the correct location via a 301 / Redirect code. Recently, we starte...

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

Make Apache to show different index.html also in browser's address bar

I have the following foloder tree on my shared hosting server: www.somesite.com | |_ public_html (document folder) |_ .htaccess (Apache file) |_ index.html (page shown by server now when someone looks for www.somesite.com) | |_ site_editor (folder) | |_login.html (site editor control panel) | |_file1.php ...

xdebug not loading. not found in phpinfo() after apache restart

Hi folks, I've been scouring every resource I could find, but came up empty. I get the dreaded "Waiting for Connection" message in NetBeans 6.9 when I start a debug session. After much reading, most folks are able to get phpinfo() to display that it loaded the xdebug module. Not so with me. I downloaded the source through SVN using this...