Tried to write lighttpd block rules however can get it to parse sucessfullyCan you create Outlook 2010 rules...
I am the person who abides by rules but breaks the rules . Who am I
Can the Witch Sight warlock invocation see through the Mirror Image spell?
Can I challenge the interviewer to give me a proper technical feedback?
Is the differential, dp, exact or not?
Why do phishing e-mails use faked e-mail addresses instead of the real one?
What is the oldest European royal house?
How can I portion out frozen cookie dough?
What does "rhumatis" mean?
Why does this boat have a landing pad? (SpaceX's GO Searcher) Any plans for propulsive capsule landings?
Was this cameo in Captain Marvel computer generated?
Is divide-by-zero a security vulnerability?
How spaceships determine each other's mass in space?
Who has more? Ireland or Iceland?
Limpar string com Regex
Should I apply for my boss's promotion?
In Diabelli's "Duet in D" for piano, what are these brackets on chords that look like vertical slurs?
Is there a logarithm base for which the logarithm becomes an identity function?
ESPP--any reason not to go all in?
Does the US political system, in principle, allow for a no-party system?
Vector-transposing function
Why would /etc/passwd be used every time someone executes `ls -l` command?
Did Amazon pay $0 in taxes last year?
Professor forcing me to attend a conference, I can't afford even with 50% funding
What is the purpose of a disclaimer like "this is not legal advice"?
Tried to write lighttpd block rules however can get it to parse sucessfully
Can you create Outlook 2010 rules based on content or formatting?Trying to install lighttpd with macports, but get 'upgrade openssl failed'?Can I configure auto-sorting rules in Outlook 2007/2010?While trying to install lighttpd on debian squeeze I get: 'Some packages could not be installed.'Is there any way I can more easily run Outlook rules?Outlook (on Exchange) rules - how can I use the OR operator?Can I check for multiple file extensions in one rsync filter rules file per line?Nextcloud live doc editing w/ Collabora Online (CODE) cURL error 60: Peer's certificate issuer has been marked as not trusted by the userCan we turn off firewall rules for IPv6 on Windows Server 2012 R2?Outlook limits how many email rules I can have. How can I get around this?
Fairly new to lighttpd but this syntax really drives me insane, everything I change is wrong and no exact explanation what is wrong.
I check the syntax with this command:
lighttpd -t -f /etc/lighttpd/lighttpd.conf
For example, very cryptic:
2019-03-08 22:37:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
What I want to do is this:
- Check if IP is internal, if true = full access, if not provide some rules
- If url contains this set of characters: "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" = don't allow error
- if request method is one of these: HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH = don't allow error
- else: route request via block.php, shows a default page on every normal request
So i wrote this script (changed it alot, without {}, without else, without url.access-deny, etc:
$HTTP["remoteip"] !~ "192.168.0." {
$HTTP["url"] =~ "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" {
url.access-deny = ( "" )
} else $HTTP["request-method"] =~ "^(HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)$" {
url.access-deny = ( "" )
} else {
url.rewrite-once = ( "^.*$" => "block.php?url=$0" )
}
}
Error, again very criptic:
2019-03-08 22:58:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
Why it doesn't compile? How can I get it to work?
linux http rules lighttpd
add a comment |
Fairly new to lighttpd but this syntax really drives me insane, everything I change is wrong and no exact explanation what is wrong.
I check the syntax with this command:
lighttpd -t -f /etc/lighttpd/lighttpd.conf
For example, very cryptic:
2019-03-08 22:37:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
What I want to do is this:
- Check if IP is internal, if true = full access, if not provide some rules
- If url contains this set of characters: "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" = don't allow error
- if request method is one of these: HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH = don't allow error
- else: route request via block.php, shows a default page on every normal request
So i wrote this script (changed it alot, without {}, without else, without url.access-deny, etc:
$HTTP["remoteip"] !~ "192.168.0." {
$HTTP["url"] =~ "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" {
url.access-deny = ( "" )
} else $HTTP["request-method"] =~ "^(HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)$" {
url.access-deny = ( "" )
} else {
url.rewrite-once = ( "^.*$" => "block.php?url=$0" )
}
}
Error, again very criptic:
2019-03-08 22:58:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
Why it doesn't compile? How can I get it to work?
linux http rules lighttpd
The error says line 40, but you've only given us 10 lines. What is the number of the first line you've given us in the real file?
– user2313067
8 hours ago
add a comment |
Fairly new to lighttpd but this syntax really drives me insane, everything I change is wrong and no exact explanation what is wrong.
I check the syntax with this command:
lighttpd -t -f /etc/lighttpd/lighttpd.conf
For example, very cryptic:
2019-03-08 22:37:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
What I want to do is this:
- Check if IP is internal, if true = full access, if not provide some rules
- If url contains this set of characters: "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" = don't allow error
- if request method is one of these: HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH = don't allow error
- else: route request via block.php, shows a default page on every normal request
So i wrote this script (changed it alot, without {}, without else, without url.access-deny, etc:
$HTTP["remoteip"] !~ "192.168.0." {
$HTTP["url"] =~ "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" {
url.access-deny = ( "" )
} else $HTTP["request-method"] =~ "^(HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)$" {
url.access-deny = ( "" )
} else {
url.rewrite-once = ( "^.*$" => "block.php?url=$0" )
}
}
Error, again very criptic:
2019-03-08 22:58:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
Why it doesn't compile? How can I get it to work?
linux http rules lighttpd
Fairly new to lighttpd but this syntax really drives me insane, everything I change is wrong and no exact explanation what is wrong.
I check the syntax with this command:
lighttpd -t -f /etc/lighttpd/lighttpd.conf
For example, very cryptic:
2019-03-08 22:37:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
What I want to do is this:
- Check if IP is internal, if true = full access, if not provide some rules
- If url contains this set of characters: "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" = don't allow error
- if request method is one of these: HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH = don't allow error
- else: route request via block.php, shows a default page on every normal request
So i wrote this script (changed it alot, without {}, without else, without url.access-deny, etc:
$HTTP["remoteip"] !~ "192.168.0." {
$HTTP["url"] =~ "?|&|%|+|,|=|!|..|\|/\|./|\.|log|admin|get|set|gal|script" {
url.access-deny = ( "" )
} else $HTTP["request-method"] =~ "^(HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)$" {
url.access-deny = ( "" )
} else {
url.rewrite-once = ( "^.*$" => "block.php?url=$0" )
}
}
Error, again very criptic:
2019-03-08 22:58:20: (configfile.c.1154) source: /etc/lighttpd/lighttpd.conf line: 40 pos: 1 parser failed somehow near here: (EOL)
Why it doesn't compile? How can I get it to work?
linux http rules lighttpd
linux http rules lighttpd
asked 9 hours ago
CodebeatCodebeat
2181415
2181415
The error says line 40, but you've only given us 10 lines. What is the number of the first line you've given us in the real file?
– user2313067
8 hours ago
add a comment |
The error says line 40, but you've only given us 10 lines. What is the number of the first line you've given us in the real file?
– user2313067
8 hours ago
The error says line 40, but you've only given us 10 lines. What is the number of the first line you've given us in the real file?
– user2313067
8 hours ago
The error says line 40, but you've only given us 10 lines. What is the number of the first line you've given us in the real file?
– user2313067
8 hours ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1412534%2ftried-to-write-lighttpd-block-rules-however-can-get-it-to-parse-sucessfully%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1412534%2ftried-to-write-lighttpd-block-rules-however-can-get-it-to-parse-sucessfully%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The error says line 40, but you've only given us 10 lines. What is the number of the first line you've given us in the real file?
– user2313067
8 hours ago