Why is index.html being ignored? "Internal server error" - webserver

Just trying to migrate a site to a different host where another site is supposed to be replaced. I delete everything from public_html and just add a simple index.html there with a maintenance message while I work on the migration, but the server just seems to ignore the index.html for some reason.
I get an internal server error while trying to visit the page.
How can I investigate further? Using cPanel here, the previous website had a custom CMS/Backoffice.

Related

Need to run magento website in subdirectory

I have a website in a server which is another plateform but I need a set up magento website in sub folder And the error says is :- This page isn’t workinge redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS
Please anyone help me on that.
Errors on setup and need to run the website.

TYPO3 shows blank page www

I just uploaded TYPO3 (10.4.12) from my local to a server and its only reachable when not using www.
Without it the page loads fine, but when using www. it just shows a blank page. It uses the standard htaccess without any modification. Server Host says its TYPO3 settings. But I can't find this anywhere? How can I make it accessible with www.?
blank screen in an production setting means you have an error. look into the server log or switch temporarily to develop mode to identify the error.
I assume a wrong redirect in the domain configuration.

ionic app not able to refresh due to /home routing

Built a fresh ionic v5 app from blank template. Added minimal logic to the home page for a simple toy project and deployed to a static blob on Azure.
Copied www folder to a blob and then made it public. Surf to the URL of index.html but this produced many errors of runtime.js:1 Failed to load resource: the server responded with a status of 400 (One of the request inputs is out of range.)
So then I tried a fresh storage module and used the 'static website` option and that does work except...
when it runs, it adds /home to the address and if the user tries to refresh the page then it fails with The requested content does not exist. because of course it thinks that's a resource inside the site.
You can simulate this by running a server (eg. http-server) inside the www folder, run the app then refresh with F5. I notice there is no problem when running using the dev command ng serve
Older ionic projects didn't have this problem. Have I done something peculiar?
This prevents any mobile phone from viewing the app and then adding to home screen because it includes the /home in the address.
Have found a partial solution here
https://stackoverflow.com/a/56584151/769427
which describes using the 404 page setting of a static website to point at index.html.
It does make it work (and with deep linking too) but the disadvantage is that a 404 error is registered each time in the dev tools.

API requests doesn't work on my computer but the other

I have a very simple API created by using Laravel 5.2.22, when calling GET methods I am getting the error 404, calling DELETE method I am getting the error 405 (same thing using postman or curl). The point is that the same project works perfectly on another machine.
Is there anything that I have to configure in my Xampp to make this works?
Could anybody help?
Thank you
AS you said, the cause can be in wrong web server configuration. You should point your web server to a public directory of Laravel project. For example, if you've installed Laravel in C:/xampp/htdocs/ directory, you need to use these settings:
DocumentRoot "C:/xampp/htdocs/public"
<Directory "C:/xampp/htdocs/public">
After that restart web server. Also, make sure storage directory has right permissions.
Do this, if you'll get similar error message, please turn on Debug and post full error message.

Click once deployment to a ISP hosted Server (ISP is Lunarpages in this case)

I know this has some crossover to Serverfault.com but the advice on meta.stackoverflow was to ask it here (first) as it requires a .NET dev to answer more than likely.
I am having some problems publishing to my website a Click Once App, I am getting an error message saying (something like) IIS not running, I'm not currently at home to give an exact error message, i'll edit later if it is required to answer this question.
My ISP is lunarpages the plan I am on is this one IIS is definitely running as I have BlogEngine.NET running just fine. Anyone know what is required configuration wise (both server and client) to make this work?
The files that the ClickOnce publish create can be run on just about any web environment (include Apache/Linux.) It simply generates an html page along with the application manifest and your application files. Maybe you can deploy to a local folder and upload the files to the server?