mod_perl can't see files in /tmp

Questions: I have some mod_perl code trying to access a file under /tmp … but it throws a ‘no such file or directory’ error. I added an ‘ls -al /tmp’ to my code to see what Perl was seeing inside the directory, and it only gave me . and .. : drwxrwxrwt. 2 root root… Read More »

MAMP Pro 2.2 not reading httpd.conf changes

Questions: I’m using MAMP Pro Version 2.2. When I make changes the my httpd.conf file, those changes are not reflected in the httpd.conf file generated by MAMP PRO when I restart its servers. Through Terminal, I’ve confirmed that the httpd.conf file MAMP PRO is reading from is /Applications/MAMP/conf/apache/httpd.conf. When I make changes to that file,… Read More »

WAMP Server Apache won't start

Questions: There are several topics that are very similar to this one, however, after looking over them the ones that were solved I did not have the same issue, and the rest weren’t solved. I have installed a new version of WAMP. No changes made to any files. Opening wamp the icon never goes from… Read More »

Redirect Without changing URL Apache

Questions: I want to redirect one URL to another without changing the Browser URL www.example.com/abc/(.*).xml should redirect to www.example.com/abc/xyz/index.htm?file=$1 But the Browser should display www.example.com/abc/(.*).xml Answers: You can use a RewriteRule: RewriteEngine On RewriteRule /abc/(.*)\.xml$ /abc/xyz/index.htm?file=$1 [L] Make sure you have mod_rewrite enabled and put this either in your VirtualHost config, or in a .htaccess… Read More »

apache2 – https redirection to http for a given page

Questions: I have a specific problem about the redirection of HTTPS to HTTP for several pages. I have Apache2 in front of Zope. Here’s the configuration of my VirtualHost on port 80 : <VirtualHost *:80> ServerAdmin root@website.com ServerName website.com ServerAlias www.website.com <IfModule mod_rewrite.c> RewriteEngine On # www to non www RewriteCond %{HTTP_HOST} ^www.(.*) [NC] RewriteRule… Read More »

How can I make sure AuthName works in all browsers?

Questions: The code below appears to show the text “HELLO WORLD” just fine in Firefox, IE, Safari, but not in Chrome. <Files wp-login.php> AuthType basic AuthName “HELLO WORLD” AuthBasicProvider file AuthUserFile /home/.htpasswd Require valid-user </Files> ErrorDocument 401 “Authentication required” How can I make sure AuthName works in all browsers? Answers: The AuthName directive sets the… Read More »

file_get_contents 1 minute timeout for https?

Questions: I’m having difficulty with PHP’s file_get_contents hanging for 60s when accessing certain resources over https. I’m not sure whether it’s a client or server end issue. On the client Working on the command line: $ URL=”https://example.com/some/path” $ wget “$URL” -O /dev/null -q # takes a few milliseconds $ curl “$URL” >/dev/null # takes a… Read More »