I've spent many hours with testing different solutions and googling but not succeeeded yet.
I'm using VirtualHost with one site for my web site (/var/site1/www/html/) and another for managing maintenance pages or ErrorDocument (/var/msite2/www/html).
My final goal is to allow some IPs to access the site1 during maintenance phase. For denied IPs, I want them to be redirected to a maintenance page responding to the Error 503.
IPs filtering is working. My problem is about redirection.
In the site1 configuratipon file, in the VirtualHost, if I set ErrorDocument 503 "Bad luck !!!", the text is dispalyed on thedenied IP browser.
When I try to set ErrorDocument 503 /var/msite1/www/html/Error503.html, I've got the default 503 text message plus one telling that the system is unable to find the Error503.html.
Does anyone has a real procedure for that ?
Debian 8 Apache 2.4.10 ErrorDocument overload not working
40 Views Asked by wfe At
1
There are 1 best solutions below
Related Questions in APACHE
- Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Cannot load modules/mod_dav_svn.so into server
- How to ignore case in regexp mapping in a .htaccess rewrite rule?
- Oracle Http server ISNT-07551
- I cant access file directory with PHP local host on XAMPP. it just shows one of the files I have in my visual studio code
- Apache Reverse Proxy: only one proxy directive is working. Second one is ignored
- Issue with Django --> Apache WSGI deployment
- changing the node version used by apache web server
- Apache: How can I redirect to a subfolder with a URL param but serve required content via the main URL?
- Why/How does Apache auto-include "DHE" TLS1.2 ciphers while nginx needs "dhparams" file?
- Set up MX records in apache/Ubuntu to point to external mail server
- How to proxy to another port?
- Php can not upload file out of /var/www/html even after disabling Selinux
- Serve static site on S3 + CloudFlare with Apache retaining the source URL
Related Questions in DEBIAN
- How to restrict user access on mounted NSFv4 share with all_squash option?
- Obtaining the user's home directory for a daemon application running as root in linux
- Make Bind DNS server to request only root DNS servers of IANA website
- Mokutil does'nt work in Google Cloud Compute Engine
- Install Gitlab Repository : Wordlists
- PHP apache2 - php script cli will write txt file but browser will not
- Docker error at build E: Release file for http://deb.debian.org/debian-security/dists/bookworm-security/InRelease is not valid yet
- Slow loading of WordPress site on development server despite fast database queries
- How to use pyinstaller on debian?
- Python 3.12 pip install mod_wsgi fails
- Using Packer to install Debian
- How to install PHP Extension SQLSRV on Azure App Service (PHP 8.2 / Linux)?
- "Read-only filesystem" error during docker build
- Python code for raspberry pi not "alt+tabbing" to new window with GPIO button
- Resolve dependencies of an arbitrary Debian or Ubuntu package
Related Questions in HTTP-STATUS-CODE-503
- Getting CORS error even when using cors library
- 503 DNS resolution failed for gemini pro fine-tuning
- How to troubleshoot and resolve a Typo3 503 Error?
- Unexpected Encrypted-Like Response in Next.js on Form Submission Using Edge Functions
- Sharepoint 2019 web application 503 the service is not available error
- Http Error 503 - When trying to open https local web server
- Node.js net::ERR_FAILED 503 .... sometimes
- I'm getting "Could not read source map for chrome-error://chromewebdata/:" When attempting to run my Flutter app on Chrome
- Problem with DNS resolution using Java and Apache HttpClient
- Google Cloud with Node Js running WebSocket returns an error from a failed readiness check
- Symfony 6.4 - Unable to submit form with new line (\n) in textarea after update
- Redirection to 503.shtml URL while there isn't such file
- Many requests to /php_fpm_status and server unresponsive
- google.api_core.exceptions.ServiceUnavailable: 503 failed to connect to all addresses
- AWS Lambda HTTP 503 when opening amazon urls
Related Questions in ERRORDOCUMENT
- PHP Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request
- Custom 503 messages based on conditions in .htaccess
- ErrorDocument 404 don't work together with RewriteRule
- Redirect not redirecting on Apache
- How to edit Apache Forbidden error "You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe"
- Apache ErrorDocument 500
- FallbackResource not working for .php url
- Using Apache REDIRECT_STATUS to allow custom ErrorDocument
- Custom Error page isn't loading when URL contains "/ /"
- ErrorDocument redirect in .htaccess when placed in subfolder
- 403 redirects doesn't work but 404 does. What's wrong, what can I do?
- URLEncode in htaccess
- How to apply RewriteRule properly on forbidden files?
- .htaccess Vanity/Nice URLs Causing 404 Error to be Homepage
- How to redirect to 404 but keep wrong URL on address bar using .htaccess
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Finally, I reset my mind and found a solution to my problem using environmnet variable, rewriterule ...
It works fine now.