Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I recently enabled mod_proxy for apache2, and after having restarted my server from a power outage, the following error arose whenever I attempted to start apache2:

* Starting web server apache2                                                  
Syntax error on line 39 of /etc/apache2/sites-enabled/000-default:
Regex could not be compiled
Action 'start' failed.
The Apache error log may have more information.

Line 39 contains the following:

 <ProxyMatch *>

I tried reading the error.log file but could not find any information regarding this error.

Apache2 was functional (with these exact settings) before the server was suddenly shut down. My question of course is: how can I solve this problem?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

According to the documentation the ProxyMatch directive takes as its parameter a regular expression. * by itself is not a regular expression -- * simply means, "the previous character zero or more times". So a regular expression that matches everything would look like this:

<ProxyMatch .*>

That's "any character" (.) zero or more times (*).

Note that the Proxy command uses glob-style matching, so this is valid:

<Proxy *>

My guess is that this is what you meant.

For more information

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.