Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rcschaff

Pages: 1 ... 42 43 [44] 45 46 ... 55
646
Don't add a second location / block, or you'll screw everything up.

Code: [Select]
server {
        listen 188.166.23.139:80;
        server_name quedamosencasa.com  www.quedamosencasa.com;
        root /home/brujo/public_html;
        index index.php index.html index.htm;
        access_log /usr/local/apache/domlogs/quedamosencasa.com.bytes bytes;
        access_log /usr/local/apache/domlogs/quedamosencasa.com.log combined;
        error_log /usr/local/apache/domlogs/quedamosencasa.com.error.log error;


        location / {
                try_files $uri $uri/ /index.php?$args;
                location ~.*\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
                        expires max;
                }

                location ~ [^/]\.php(/|$) {
                        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                        if (!-f $document_root$fastcgi_script_name) {
                                return  404;
                        }

                        fastcgi_pass    unix:/opt/alt/php-fpm73/usr/var/sockets/brujo.sock;
                        fastcgi_index   index.php;
                        include         /etc/nginx/fastcgi_params;
                }

        }

        location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;}

        disable_symlinks if_not_owner from=/home/brujo/public_html;

        location /.well-known/acme-challenge {
                default_type "text/plain";
                alias /usr/local/apache/autossl_tmp/.well-known/acme-challenge;
        }
}

647
Installation / Re: 2 issues with permalink and ssl
« on: March 31, 2020, 12:06:14 AM »
thanks for your help!
i followed your suggests and fixed the wordpress issue.

but i can't fix the second one, actually if i try to reinstall it says it's already installed but if i go with my browser it says not secure.


If you click that "Admin Services" buton, and select at least one, it will grab a cert from letsencrypt.

648
Installation / Re: 2 issues with permalink and ssl
« on: March 28, 2020, 09:36:53 PM »
When you first setup WordPress, you did so from hostname/~user

Log into WordPress admin and update the website url

Change WordPress URL in Admin Dashboard
The first and most common method is to change your WordPress URL directly from within the admin dashboard. On the left-hand side, under “Settings,” click into “General.” You can then update the following:

WordPress Address (URL): The address to reach your blog.
Site Address (URL): The address of your WordPress core files.
Both should match unless you are giving WordPress it’s own directory. Remember that after you click “Save Changes,” your WordPress dashboard is now only accessible via the new URL.


As for your ssl issue.  You have a valid cert for your hostname, but not for your domain.  Make sure you get a cert via autossl in the cwp panel for the domain. (most likely set to self generated atm)

649
Nginx / Re: Just Nginx run (wordpress permalink 404)
« on: March 28, 2020, 07:35:31 PM »
Not if you set it on a per user/domain instance.

650
Nginx / Re: Just Nginx run (wordpress permalink 404)
« on: March 28, 2020, 06:58:30 PM »
PROBLEM SOLVED

Hi, i discovered a great website https://www.mysterydata.com/ with a great administrator where you can find many guides for CWP and more, also by registering for free on the forum i found the solution to this problem thanks to the courtesy and extreme availability of the administrator.

SOLUTION:

https://forum.mysterydata.com/topic/3/cwp-nginx-varnish-apache-with-php-fpm-server-how-to-configure-pretty-permalink-for-wordpress/2

Good day and good work to all !

Hi,

I have the same issue but for subdomain sites only.

.htaccess is in the subdomain folder but nothing happens.

Another hand there is a line in nginx subdomain vhost that disable .htaccess but is not present in nginx default .conf

Code: [Select]
location ~* "/\.(htaccess|htpasswd)$" {deny all;return 404;}

How did you do it?

Thanks in advance

nginx does not use .htaccess file.

Follow these Steps
1)  Log into the CLI via SSH
2)  Cd /usr/local/cwpsrv/htdocs/resources/conf/web_servers/vhosts/nginx/php-fpm
3) "   cp default.stpl wordpress.stpl  "  and   "   cp default.tpl  wordpress.tpl     "
4)  edit wordpress.stpl and wordpress.tpl (nano/vi)
5) Find location / {
6)  Immediately under that line add  "     try_files $uri $uri/ /index.php?$args;       "  and save it
7)  Log into CWP Admin panel
8)  Webservers -> Webservrs Domain Config
9)  Select user of domain running wordpress
10) Click Create Configuration
11)  Select NGINX-PHPFPM
12)  Nginx default vhost template type:  Set to PHP-FPM
13)  Nginx default vhost template:   Select Wordpress
14) Select your desired PHP-FPM Version
15) Check box to rebuild Webserver Config for domain.
16) Click Save

Wordpress should now work
 Repear 9-16 for other wordpress installations.

651
Check WebServer Settings -> Webservers Main Conf to see if there is a default template set that does not exist.

652
E-Mail / Re: RoundCube Reply error
« on: March 28, 2020, 04:39:25 AM »
Please post the contents of the log files under
/usr/local/cwpsrv/var/services/roundcube/logs/

653
/usr/local/cwpsrv/ has the files for 2031 port

654
Yes.  It will override any custom configurations if you rebuild the vhosts.  However, you can create your own template that will not be overridden.

655
SSL / Re: SSL not working for ports 2031 and 2083
« on: March 26, 2020, 10:50:00 PM »
LetsEncrypt had to revoke their intermediate certificate due to a flaw in their services.  You need to reissue all certs that were issues more than 2 weeks ago.

656
E-Mail / Re: Gmail Does Not Send Mail to Hotmail Addresses
« on: March 25, 2020, 12:12:01 AM »
Spf records are important.  So is ip reputation.  Of you have none, Gmail is a pita.  Use mxtools to make sure your not on blacklists, and check root mail (install mutt) to see responses from Gmail's servers.

657
Your hostname is too long.  Try changing it to s.(domain)

658
E-Mail / Re: cannot send but can receive mail
« on: March 15, 2020, 04:20:19 AM »
 No route to host
Says otherwise.  As for your "still using port 25". Correct.   Smtp ports really shouldnt be changed   if you prevent relaying your fine.  If you are receiving mail from the outside world, I'm amazed unless you use port redirection which is doing nothing for you.

659
DNS / Re: Nameserver is not authoritative
« on: March 15, 2020, 04:12:25 AM »
@    86400        IN      SOA     ns1.centos-webpanel.com

SOA means start of authority

660
No hostname cert = no cwpsrv start.

Run
/scripts/generate_hostname_ssl

Pages: 1 ... 42 43 [44] 45 46 ... 55