Questions tagged [pcre]
44 questions
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…
![](../../users/profiles/327195.webp)
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…
![](../../users/profiles/326069.webp)
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…
![](../../users/profiles/148599.webp)
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…
![](../../users/profiles/138309.webp)
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…
![](../../users/profiles/110091.webp)
Thale
- 183
- 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…
![](../../users/profiles/104424.webp)
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
…
![](../../users/profiles/96630.webp)
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…
![](../../users/profiles/36532.webp)
user36532
- 3
- 1
- 2
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: "(?:[^"]|"")*"…
![](../../users/profiles/966200.webp)
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…
![](../../users/profiles/708327.webp)
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…
![](../../users/profiles/249114.webp)
OstermanA
- 11
- 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…
![](../../users/profiles/462936.webp)
Prorata
- 99
- 3
-1
votes
1 answer
How do I recompile apache in CentOS?
I need to recompile apache with an external PCRE library. Any help would be much appreciated. Thanks.
![](../../users/profiles/119243.webp)
bigZero
- 1
- 1