Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Do I need duplicate all new configuration entries (location = ... ) from #Part 1 to PART 2 in Nginx virtual-host configuration file? Eg.:

FIRST PART of /etc/nginx/sites-available/mywebisteurl.com

server {
    listen 80;

location = / {
    try_files $uri $uri/ /index.php?q=$uri&$args;
}

SECOND PART of the same file

server {
    listen 443;
..........

}
share|improve this question

closed as off-topic by hhlp, guntbert, Eric Carvalho, karel, Braiam Mar 2 at 1:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – guntbert, Eric Carvalho, karel
If this question can be reworded to fit the rules in the help center, please edit the question.

    
This should be on Serverfault: serverfault.com –  TimWolla Dec 6 '12 at 17:47

1 Answer 1

Oh! I'm didnt realise that second 443 port is https port so I need to duplicate values if I want the same configuration for https. Everything clear now :-)

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.