httpd.conf

ReWrite RegEx, URL having at least one character.

I have the following RewriteRule: RewriteRule ^/people/([A-Za-z0-9\-\_]*)/?$ /people/people_details.cfm?person=$1 [I,L] ...it works great for forwarding my rule, but I want to make sure that the regex only picks it up if it has more than one character. So really, I need to have my regex... [A-Za-z0-9\-\_]+ ...have an additional r...

My httpd.conf was accidentally deleted, can't start apache. How do I recreate httpd.conf in Godaddy's VDS?

Hi, I don't know if it's appropriate to ask for this but I really need to know what's the initial content of /var/www/vhosts/mydomain.com/conf/httpd.include on Godaaddy's VDS because the conf directory was accidentally deleted by somebody and now I cannot start Apache. We didn't purchase an assited service plan so Godaddy won't help m...

How can I view the all inherited url-resolution rules affecting a given directory?

I work on two sites hosted on the same server, using the same CMS configurations and identical .htaccess files in their respective document roots. One site is letting me use the CMS's clean-url mode, and the other isn't. Site #2 functions fine in ?=messy-url mode, but when I turn clean urls on in the admin panel, and request a rewritten ...

about httpd.conf

Hi I'm starting to learn symfony for php framework and I got problem with httpd.conf configuration. First, I have xampplite installed on my windows c:\xampplite\ and then I created a symfony project (as described on getting started guide) c:\xampplite\htdocs\symfonytest\ Everything works fine when I tried to access http://localhost/...

Need to use httpd.conf instead of .htaccess for rewrite.

I am working on a host that blocks my .htaccess file from being used so I can not change my permalinks using it. I need to figure out what code to use and where to put it in my httpd.conf file to get the same effect. The code in the .htaccess file is below: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteCond %...

ServerAlias * problem

I have 3 websites on a dedicate server (with cent os and Plesk control panel) and one of these websites must > ServerAlias * when I try this in httpd.include , other two websites alias on mastersite.com but I dont want this i solved it with dedicated ip , but now I want do it with one ip <VirtualHost xx.xx.xx.xx:80> ServerName ...

Setting Up Apache Alias for Parallelized Downloads

I'm trying to point: a0.domain.com a1.domain.com to domain.com so that aX.domain.com/images/image.gif works. However, I do not want aX.domain.com/ or aX.domain.com/images/ to work. I'm trying to implement additional domains for parallelized downloads, but need to make sure that users can't access any other content other than images, c...

List directives in Apache DirectoryIndex

Does anyone know of a way to parse the contents of the apache DirectoryIndex directive (in httpd.conf) using PHP? ...

Apache loads any file that begins with the same string as used in url. How to prevent this?

If I point to: mywebsite.com/search and there is a file called search.php or search.html or search.inc.php or search.whatthehell.php in website's directory, Apache will point to that file instead of 404'ing. What is even more annoying is that if I point to: mywebsite.com/search/string?also=whatever Apache will still display any file...

Changing Apache2.2.11 httpd.conf has no effect

Hi, Hopefully someone can help here. I recently installed wampserver ver 2.0 with Apache ver 2.2.11. My issue is, I have some large php scripts which timeout at the default 5 min (300 sec) browser limit (I'm using ie8). It is critcal I get this limit extended. I have tried changing the httpd.conf file to include the following: TimeOut 12...

Cannot Call WordPress Plugin Files Under wp-content

I have a client who has many blog customers. Each of these WordPress blogs calls a plugin that provides a product link. The way that link is composed looks like this: {website}/wp-content/plugins/prodx/product?id=432320 This works fine on all blogs except two. On those two, when you try to call the URL, you get a 404. So, I disabled a...

How do I enable mod_deflate for PHP files?

I have a Liquid Web VPS account, I've made sure that mod_deflate is installed and running/active. I used to gzip my css and js files via PHP, as well as my PHP files themselves... However, I'm now trying to do this via mod_deflate, and it seems to work fine for all files except for PHP files. (Txt files work fine, css, js, static HTML...

How can I use a clean URL only in a subfolder of my website?

Hi, I have a web site http://www.mydomain.com Here I have created a sub folder http://www.mydomain.com/products. I want to change all the page inside the product folder as clean URL. I know .htaccess should be inside product folder. If it's enabled, will it affect all the parent directories and files of my site I mean http://www.my...

Symfony with only FTP access

Hello, I'm currently developing on my local pc, to which I have complete access of course. However to my production server I have only FTP access. Now, this step http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration On Symfony's installation guide, suggests that I need to edit the httpd.conf I was wonder...

mod_xsendfile for Win x64 ?

Hi, I'm trying to install the mod_xsendfile Apache Module on Windows (7) x64 (using Apache 2.2) -- yes I'm doomed from the get-go, I know :-). Apparently there is : a) No Win x64 binary for mod_xsendfile, just a Win32 binary from the module's website b) No Win x64 binary for apxs from ApacheLounge I've tried the usual LoadModule xse...

WAMP Virtual Hosts Not Working

Hi guys, please help me, I am pulling my hair out. I cannot get Virtual Hosts to work with WAMP. I have uncommented out this line: # Virtual hosts Include conf/extra/httpd-vhosts.conf This is my httpd-vhosts.conf file: # # Virtual Hosts # # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHos...

How do I enable sticky load balancing based on session identifiers using apache mod_proxy_balancer

Our proxy configuration (in httpd.conf) to send requests to 2 JBoss instances are given below is based on mod_proxy_balancer <Proxy balancer://mycluster> Allow from all BalancerMember http://192.168.1.2:9080 BalancerMember http://192.168.1.2:8080 </Proxy> ProxyPass /app balancer://mycluster/app ProxyPassReverse /app http://192.168.1.2...

MAMP Pro + Espionage folder encryption = 403 error?

I'm using MAMP PRO on my OS X 10.6 with Espionage to encrypt my ~/Sites folder (where MAMP is pulling my virtual hosts from). I'm having trouble having MAMP's Apache follow the symlink that Espionage automatically creates to /Volumes/EspionageMounts/lee/3042560432 (I believe this changes all the time, so cannot be static). My 'Sites' f...

How to display a web page just before Apache basic authentication (with exclusion list)?

I have web page running on the Apache. Web page is using Apache basic authentication. So when user tries to access certain page - must enter user/pass before to get authorised. I would like to display notification (except a list of IP addresses) screen with accept button just before authentication. Other comments on above: I can't sto...

Need to set Apache ServerName directive based on environment vars

Hi I have an Apache config which gets deployed to several different webserver platforms (uat, staging, development etc). The platforms are identical Redhat environments. Each platform has an environment var "HOST_PLATFORM" of "uat", "staging", "development" etc. I'd really like to be able to do something like this in my vhost: <...