Apache mod_alias – Not Found

I was facing a ‘Not found’ using alias/mod_alias.

Not Found
The requested URL /home/ftp (…..) /index.php was not found on this server.

Alias "/ps/" "/home/ftpuser/ps/"
<Directory "/home/ftpuser/ps/">
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

Apache was searching the file in /var/www/html/home/ftp

File does not exist: /var/www/html/home/ftpuser/ (...) /index.php

To solve it I had to tweak .htaccess and set RewriteBase.

RewriteBase /ps/admin/

nginx proxy timeout

*1751 upstream timed out (110: Connection timed out) while reading response header from upstream

nginx errror log

On the location /proxed/ { or your proxy_pass

proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;

wp_wfConfig too large

While debugging some bottlenecks in one of my servers…

i’v realised that one of my db queries to Wordfence tables were causing it.

Solution was to… uninstall wordfence – to clean all their tables – anda reinstall it.

After removing it 23:30, CPU usage and Load Average was a significantly reduced.

Remove prices from WooCommerce

We can simple use a plugin for it. YITH WooCommerce Catalog Mode can do the work.

Although this might not be enough if you want to remove prices from Google results.

Add the following to your functions.php located at your theme page.

add_filter( 'woocommerce_structured_data_product_offer', '__return_empty_array' );

Test your page results according to Google at
https://search.google.com/test/rich-results?hl=pt-br

Google Support – About sale price annotations
https://support.google.com/merchants/answer/9017019?hl=en&sjid=11620160989609311719-EU

Google Merchant Center
https://www.google.com/retail/solutions/merchant-center/