Score:0

Syntax Error I can't figure out on Apache2

sy flag

I was attempting to change the conf of my files in order to achieve port forwarding, however all of a sudden I get the following error when attempting to restart:

AH00526: Syntax error on line 30 of /etc/apache2/sites-enabled/000-default.conf:
RewriteCond: bad flag delimiters

I'm new to Apach2 so I'd appreciate if someone could provide input on what could be going wrong. I can't figure out what exactly the syntax error is.

This is how my files look: 00-defualt file

le-ssl file

EDIT:

These are the lines:

RewriteEngine on
RewriteCond %{SERVER NAME}=19thstreet.co
RewriteRule ^ https://%{SERVER NAME}%{REQUEST URI} [END,NE,R=permanent]
Score:1
sy flag

I figured it out. It was the underscore in Request_URL:

RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
dzup4uk avatar
ru flag
Also the correct lines would be RewriteEngine On RewriteCond %{SERVER_NAME} 19thstreet.co RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.