Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expected ')' got 'req.url' error #1

Open
hdavy2002 opened this issue Dec 9, 2012 · 1 comment
Open

Expected ')' got 'req.url' error #1

hdavy2002 opened this issue Dec 9, 2012 · 1 comment

Comments

@hdavy2002
Copy link

Hi,
I am getting this error.
I have used this in the beginning.

<?php

backend default {
.host = "127.0.0.1";
.port = "8080";
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
}

When I restart, I get this error.

Message from VCC-compiler:
Expected ')' got 'req.url'
(program line 409), at
(input Line 159 Pos 84)
if (req.url ~ "^/wp-(login|admin)" || req.url ~ "^/[^?]+/wp-(login|admin)" req.url ~ "^/podcast" || req.url ~ "^/cronjobs" || req.url ~ "^/[^?]+.(jpeg|jpg|png|gif)(?.*|)$") {
-----------------------------------------------------------------------------------#######----------------------------------------------------------------------------------------------
Running VCC-compiler failed, exit 1
VCL compilation failed

@hdavy2002
Copy link
Author

I am a newbie, so please bear with me.

I have multiple virtual host and my back-end is Apache2 listening on 127.0.0.01 port 8080

So I tried your config with some more mod in the begining of the file and I get the same error.

#<?php
backend master_only { .host = "127.0.0.1"; .port = "8080"; .connect_timeout = 600s; .first_byte_timeout = 600s; .between_bytes_timeout = 600s; }

director www_director random {

    .retries = 50;

    # main server
    { .backend = { .host = "127.0.0.1"; .port = "8080"; .connect_timeout = 600s; .first_byte_timeout = 600s; .between_bytes_timeout = 600s; } .weight = 40; }

    # server 2
    { .backend = { .host = "127.0.0.1"; .port = "8080"; .connect_timeout = 600s; .first_byte_timeout = 600s; .between_bytes_timeout = 600s; } .weight = 60;  }

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant