-
Published Answer
Remove example.com from server_name directive and create a new server block
server {
listen 443;
listen [...
•
By
bepari662
-
Published Question
I'm using WordPress and different theme for mobile & desktop. FastCGI cache storing only one version. Sometimes it showing desktop version on mobile and sometimes mobile version on desktop.
My question
1. Is it possi...
Accepted Answer:
if ( $http_user_agent ~* '([^-]+)Android' ) {
#yourcode here
}
if ( $http_user_agent ~* '([^-]+)iPhone' ) {
#yourcode here
}
1
•
•
By
bepari662
Nginx
-
Published Answer
Problem solved
•
By
bepari662
-
Published Question
I'm trying to add basic auth for wp-login but it is not working
Here is the code I have added to /etc/nginx/sites-available/default file
location ^~ /wp-login.php {
auth_basic "Admin Login";
...
1
•
•
By
bepari662
Nginx
-
Published Question
Nginx showing 404 error for all URL. My url structure is example.com/beauty-grooming/best-wax-for-hair-india.html
when try after changing parmalink without .html, it is working.
vHost
```
server {
# SSL configuration...
2
•
•
By
bepari662
Nginx
-
Published Question
I am trying to access my droplet from the Linux terminal using below command:
ssh -i /<path>/key.ppk root@<server-IP>
But it showing error
Load key "/<path>/key.ppk": invalid format
root@<server-IP>: Permission den...
1
•
•
By
bepari662
Ubuntu 18.04
Logging
Apache
-
Published Question
How to solve the below apache error
mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when du mping table `wp_postmeta` at row: 7237
Accepted Answer:
Hello,
This does not look like an Apache error but an error form mysqldump. You could try running your export with the following flag:
mysqldump --max_allowed_packet=1G
Hope that this helps!
Regards,
Bobby
1
•
•
By
bepari662
Apache
-
Published Question
When I try to login my PHPMyAdmin, I get the following error messages:
```
2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).
mysqlirealc...
2
•
•
By
bepari662
MySQL
PHP
Apache
Ubuntu 18.04