Questions tagged [pcre]
46 questions
0
votes
2 answers
Blacklisted client: why did Postfix not reject this email?
Answer
The best answer was on the postfix-users mailing list and it is summarized here for the benefit of serverfault's users.
I had forgotten soft_bounce = yes. Always switch it back to no after validating the configuration
When asking for help…

Yuv
- 113
- 5
0
votes
1 answer
rewrite nginx not capture optional value
I'm migrating a configuration to a new CMS and there are urls with the structure in the current page "/view-article/ID", some shortening of links added parameters to the end as "/view-article/ID/{RAMDON|undefined|others}".
I want to redirect this…

Anto
- 103
- 3
0
votes
1 answer
util_pcre.c:104: undefined reference to `pcre_free' while compiling Apache HTTPD 2.4.17. collect2: error: ld returned 1 exit status
On a new EC2, I am facing one type of problem while compiling httpd. It seems like code of Apache cannot find functions / function definitions from libraries.
Steps I took on a fresh RHEL to install httpd.
sudo yum install gcc
extracted…

Krishna Gupta
- 121
- 1
- 4
0
votes
1 answer
Postfix regex for smtpd_command_filter
Some of my users are using Gmail to send mail to our domain (The mail server for which is hosted on a CentOS 5 machine with postfix). Sometimes, but not all the time, when they do, they get a bounceback similar to:
---------- Forwarded message…

Chris Powell
- 300
- 1
- 4
- 17
0
votes
4 answers
how to fix "Package pcre-6.6-6.el5_6.1.x86_64 already installed and latest version" alert need to update it to pcre-8.31?
Goodafternoon,
I am trying to update my pcre-6.6-6.el5_6.1.x86_64 package to pcre-8.31 following is my steps to do so:
Step
1: cd /etc/yum.repos.d
Made repository utter-ramblings.repo in it.
Populated utter-ramblings.repo file with…

Halku
- 1
- 2
0
votes
1 answer
using regex "\.php$" requires PCRE library in nginx.conf
I noticed while make install nginx, it told me PCRE is not available.
I installed PCRE: yum install -y pcre
When I restarted nginx, it shows this error:
using regex ".php$" requires PCRE library in nginx.conf
I want to enable PHP-FPM. What should…

Thale
- 193
- 1
- 9
0
votes
1 answer
Nginx can't find PCRE library on Ubuntu Server
I have been trying to get my Passenger and Nginx setup to work with php files but I am having problems with the PCRE regular expressions library. Install all went fine so I'm assuming it found the libraries at that point but now when I include a…
user105912
0
votes
1 answer
Using PCRE 8.20 with Nginx 1.0.11 and Passenger
I downloaded and extracted the nginx source to ~/nginx-1.0.11, then downloaded PCRE 8.20 directly since the latest version of the Passenger installer can't download it automatically. I did the typical ./configure, make, sudo make install for PCRE…

Adam
- 3
- 2
0
votes
1 answer
CentOS 5.0 PCRE Unicode properties support solution
I am getting the output of "pcretest -C"
UTF-8 support
**No Unicode properties support**
Newline character is LF
Internal link size = 2
POSIX malloc threshold = 10
Default match limit = 10000000
Default recursion depth limit = 10000000
…

mushfiq
- 123
- 6
0
votes
2 answers
nginx folder redirect
I'm trying redirect from an exact folder in nginx.conf
Given the URL:
domain.com/path1/path2/path3
Redirect to:
sub.domain.com/path1/path2/path3
Here's what I have so far:
location ~* ^/path1[\/?]$ {
rewrite ^/(.*) http:sub.domain.com/$1…

user36532
- 3
- 1
- 2
0
votes
0 answers
how to implement pcre command filter and postmap on postfix
i am using postfix 3.3.0
i have in main.cf
smtpd_command_filter = pcre:/etc/postfix/command_filter
in comman_filter
/^(RCPT\s+TO:\s*<(.*)@domaina.com>)/ RCPT TO:<$2@domainb.com>
whene querying postmap -q "RCPT TO: "…

Hichem
- 101
- 3
0
votes
1 answer
Regexp for header_checks in postfix
All my users use outlook, so the From field reaches the postfix like this:
From: "Name and Surname" address@something.com.
I need a regular expression to change the address, I have this in the file header_checks:
/^(From: "(?:[^"]|"")*"…

roch3
- 1
0
votes
0 answers
Regex on htaccess file gives INTERNAL REDIRECT error
I'm trying to create a redirect rule that matches the following…

Lucas
- 101
- 1
0
votes
1 answer
How to build PCRE 8.44 without linking to gcc
I'm building a custom version of Apache HTTPD with a whole slew of extra modules. As part of this, I'm linking against PCRE 8.44, which is working fine. However, lib/libpcrecpp.so.0.0.2 has a dependency showing for libgcc_s.so.1 via /usr/bin/env -i…

OstermanA
- 111
- 1
-1
votes
1 answer
nginx URL rewriting regex when URL contains a specific word but not other
Please consider the following URLs.
https://products.example.com/family/child
https://products.example.com/products/family/child
https://products.example.com/family/children
https://products.example.com/products/family/children
Among the four, I…

Prorata
- 99
- 3