2014-12-05, 02:37 AM
(2014-12-05, 01:58 AM)Destroy666 Wrote: [ -> ]Remove
or change it tolisten [::]:80;
listen [::]:80 ipv6only=on;
restart nginx and... look
http://omland.pl/
log is clear
good riddle
@edit
no have more idea... hmmm :/
(2014-12-05, 01:58 AM)Destroy666 Wrote: [ -> ]Remove
or change it tolisten [::]:80;
listen [::]:80 ipv6only=on;
server {
listen 80;
server_name omland.pl www.omland.pl;
return 301 https://omland.pl$request_uri;
}
server {
listen 443 default_server ssl;
server_name omland.pl www.omland.pl;
access_log /home/omland/log/access.log;
error_log /home/omland/log/error.log;
root /home/omland/www;
index index.php index.html index.htm;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5;
ssl_prefer_server_ciphers on;
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
# use fastcgi for all php files
location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
(2014-12-05, 03:37 AM)Destroy666 Wrote: [ -> ]Maybe try this:
server { listen 80; server_name omland.pl www.omland.pl; return 301 https://omland.pl$request_uri; } server { listen 443 default_server ssl; server_name omland.pl www.omland.pl; access_log /home/omland/log/access.log; error_log /home/omland/log/error.log; root /home/omland/www; index index.php index.html index.htm; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5; ssl_prefer_server_ciphers on; # deny access to apache .htaccess files location ~ /\.ht { deny all; } # use fastcgi for all php files location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
If still nothing, provide your nginx version.
server {
listen 80;
server_name omland.pl www.omland.pl;
}
server {
listen 443 default_server ssl;
access_log /home/omland/log/access.log;
error_log /home/omland/log/error.log;
root /home/omland/www;
server_name omland.pl www.omland.pl;
index index.php index.html index.htm;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5;
ssl_prefer_server_ciphers on;
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
# use fastcgi for all php files
location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Quote:2014/12/04 19:49:20 [emerg] 11476#0: bind() to [::]:80 failed (98: Address already in use)
(2014-12-04, 11:44 PM)Destroy666 Wrote: [ -> ]It's because you're using http:// instead of https:// in your Board URL setting ( ACP -> Configuration -> Site Details). Change it.
And to force https, just add a rule in .htaccess:
http://stackoverflow.com/a/4399158
(2014-12-05, 09:54 AM)Beautiful Wrote: [ -> ](2014-12-04, 11:44 PM)Destroy666 Wrote: [ -> ]It's because you're using http:// instead of https:// in your Board URL setting ( ACP -> Configuration -> Site Details). Change it.
And to force https, just add a rule in .htaccess:
http://stackoverflow.com/a/4399158
Why do you we have to set url there?
Im leaving it blank and my site works both ssl and non-ssl
server {
listen 80;
server_name omland.pl www.omland.pl;
return 301 https://omland.pl$request_uri;
}
server {
listen 443 default_server ssl;
server_name omland.pl www.omland.pl;
access_log /home/omland/log/access.log;
error_log /home/omland/log/error.log;
root /home/omland/www;
index index.php index.html index.htm;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:EECDH+RC4:RSA+RC4:!MD5;
ssl_prefer_server_ciphers on;
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
# use fastcgi for all php files
location ~ \.php$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}