Skip to main content
Question Protected by CommunityBot
added 2 characters in body
Source Link
peterh
  • 10.5k
  • 18
  • 69
  • 99

I have here an nginx config. I need to comment out blocks in it:

...things I want...
...things I don't want...
...things I want...

The things are 30-50 linelines long, and I won't backup and delete them. I also don't want write #s to the beginning of 30-50 code linelines, and I also don't want to script/configure my text editor to do this. I think it is a quite trivial feature.

I tried

...things I want...
/*
...things I don't want...
*/
...things I want...

But it doesn't work. Is it really an unsupported feature in the nginx?

I have here an nginx config. I need to comment out blocks in it:

...things I want...
...things I don't want...
...things I want...

The things are 30-50 line long, and I won't backup and delete them. I also don't want write #s to the beginning of 30-50 code line, and I also don't want to script/configure my text editor to do this. I think it is a quite trivial feature.

I tried

...things I want...
/*
...things I don't want...
*/
...things I want...

But it doesn't work. Is it really an unsupported feature in the nginx?

I have here an nginx config. I need to comment out blocks in it:

...things I want...
...things I don't want...
...things I want...

The things are 30-50 lines long, and I won't backup and delete them. I also don't want write #s to the beginning of 30-50 code lines, and I also don't want to script/configure my text editor to do this. I think it is a quite trivial feature.

I tried

...things I want...
/*
...things I don't want...
*/
...things I want...

But it doesn't work. Is it really an unsupported feature in the nginx?

Source Link
peterh
  • 10.5k
  • 18
  • 69
  • 99

Does nginx support comment blocks in configuration?

I have here an nginx config. I need to comment out blocks in it:

...things I want...
...things I don't want...
...things I want...

The things are 30-50 line long, and I won't backup and delete them. I also don't want write #s to the beginning of 30-50 code line, and I also don't want to script/configure my text editor to do this. I think it is a quite trivial feature.

I tried

...things I want...
/*
...things I don't want...
*/
...things I want...

But it doesn't work. Is it really an unsupported feature in the nginx?