I would like to syntax a regular expression which will match two server
names. The server names are example.com and www.example.com. In
particular,
a regular expression for www or nothing
I wrote the following regular expression (www.|)example.com Nginx
configuration file is compatible with Perl programming language. While
it
should work, it doesn’t seem to work. I cannot find the proper regular
expression. Does anyone have an idea how to synatx the regular
expression?
On Thu, Aug 29, 2013 at 05:01:01AM -0400, christospap wrote:
I would like to syntax a regular expression which will match two server
names. The server names are example.com and www.example.com. In particular,
a regular expression for www or nothing
I wrote the following regular expression (www.|)example.com Nginx
configuration file is compatible with Perl programming language. While it
should work, it doesn’t seem to work. I cannot find the proper regular
expression. Does anyone have an idea how to synatx the regular expression?
How to use regular expressions in server_name directive is
documented here:
I would like to syntax a regular expression which will match two server
names. The server names are example.com and www.example.com. In
particular,
a regular expression for www or nothing
I wrote the following regular expression (www.|)example.com
Irrespective of your use of this in an nginx config, you have made a
mistake constructing the regex. It’s such a simple one that I feel
relatively sure that you’re a newcomer to such things, hence I would
suggest you find a regex primer (book|website) and study it carefully.
Irrespective of your use of this in an nginx config, you have made a
mistake constructing the regex. It’s such a simple one that I feel
relatively sure that you’re a newcomer to such things, hence I would
suggest you find a regex primer (book|website) and study it carefully.
J
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.