New answers tagged

0

if they try http://example.com/somerandompage.html I get a 404 error To redirect all requests to example.com (non-HTTPS) back to the serverip/index.html in .htaccess (or perferably in your server config): RewriteEngine On RewriteCond %{HTTP_HOST} =example.com [NC] RewriteRule ^ http://serverip/index.html [R=301,L] This assumes your site is only ...


1

It's most likely caching issue. Ask your customer to directly visit http://pub.biotinel.fr/bastide/ and check if he can see the content of the folder. Also, you may ask your customer to visit http://pub.biotinel.fr/?v=1 - this will most likely fetch the page again and he should see bastide folder.


0

I tried overriding DocumentRoot "/path/to/new" in an included conf file outside httpd.conf and it seems to work great. This was for Apache 2.4.


0

Use error_page directive and add this code: server { ... error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html; add_header Cache-Control "no-cache" always; } }


1

My problem is I have already one site in '/var/www/html' with domain1.com. If I add one more site domain2.com create a new folde like /var/www/new or /var/www/html/new, how to modify <VirtualHost *:80> part? because I have deified DocumentRoot /var/www/html. I'm not really sure what the "problem" is? You copy the entire <VirtualHost *:80> ...


1

Split your location into two sections: 1. <Location /apex/> - here you should put ProxyPassReverse options. 2. <Location /apex/(?!wwv_flow\.show)> - this one will match everything other then /apex/wwv_flow.show First section is required because ProxyPassReverse takes location literally and will go crazy on regex. If you encounter such ...


2

The problem here was ErrorDocument which doesn't interpolate server env vars...


0

If you use their shared hosting plan, you should check if the path of phpMyAdmin is on same location of the folder you set with the file. Make sure to check the permissions of that folder and if it's not have conflict since tmp folder can be used by another script or software that run on the server. If it still not work for you, I would suggest to contact ...


1

This will use for both www or non-www If you try to open link with www then url redirect to https with www Example: http://domain.com redirect to https://domain.com or If you try to open link with non-www then url redirect to https with non-www Example: http://www.domain.com redirect to https://www.domain.com RewriteEngine on RewriteCond ...



Top 50 recent answers are included