Can I use github pages to host a web page made with Spring framework(.jsp)? hosting github pages - spring

As it the title states itself,
I was wondering if I could host a web page using github pages, and the web page is made with Spring framework(.jsp files..).
Or to use gitgub pages, only web languages(html,js..etc) can be used?

Nothing can be executed on the server side on GitHub, beside GitHub Actions.
That means GitHub can only host the sources for your project, but cannot be a release/deployment destination.
For instance, Heliohost might have a free tier allowing JSP deployment.

Related

Is there a way to customize the Heroku internal server error page?

So, Heroku has some very limited documentation on how to customize error pages but I haven’t found documentation on how to modify the internal server error page. I would like to show a custom page so users at least get some guidance on why their query did not work properly. The internal server error is extremely ambiguous.
Here is an example of what the internal server error page currently looks like on my Heroku app…
The pages displayed to your users when the application encounters a system error or is placed in the maintenance state can be customized. Customizing these pages allows you to present a more consistent UI to your users.
Create and store the custom pages
Create your custom pages as static HTML. You may wish to use the default HTML served by Heroku as a template:
https://www.herokucdn.com/error-pages/application-error.html
https://www.herokucdn.com/error-pages/no-such-app.html
https://www.herokucdn.com/error-pages/maintenance-mode.html
https://www.herokucdn.com/error-pages/ssl-cert-error.html
You can reference images or CSS from the HTML as long as you use relative paths (for example, ) and you upload the other assets into the same place as the HTML.
You can host the pages anywhere that can serve web pages. It recommends uploading to Amazon S3. If you use S3, don’t forget to set the HTML and all assets to be publicly readable.
Configure your application
Set the ERROR_PAGE_URL and MAINTENANCE_PAGE_URL config vars to the publicly accessible URLs of your custom pages:
heroku config:set \
ERROR_PAGE_URL=//s3.amazonaws.com/<your_bucket>/your_error_page.html \
MAINTENANCE_PAGE_URL=//s3.amazonaws.com/<your_bucket>/your_maintenance_page.html
Refer this page : https://devcenter.heroku.com/articles/error-pages
Instead of trying to make a custom page for my first issue, I used programming logic to give user errors to preempt problems related to Heroku's Internal Server Error page when my application did not run appropriately. I highly suggest you think deeply before employing this method, as it could confuse users. The Heroku Internal Server Error page is an either-or reason code. While you know (as the programmer) only one reason code applies, since you've preempted the problem with logic, the user won't assume that. For me, it was better than the alternative - which was to leave it completely ambiguous. At least, I can give users some feedback.

Ajax not working with laravel project deployment

I know this might be a broad question but i recently finished developing a laravel 5.6 app. I deployed it to a free hosting service (000webhosting) because i wanted the client to be able to preview it remotely from where they are without having to sign up for domains and hosting accounts and all that jazz.
I uploaded it by zipping my project folder and putting it in the directory of the cpanel. I put all the public files (including .htaccess) into the public_html folder and put the rest of the project into the parent directory.
Long story short, everything works fine except for ajax. Other non-ajax CRUD is functional but nothing ajax related works. It all produces 404 errors. The other non-ajax functionalities are in the same controller as the ajax methods! so i know the project is talking to itself. I have jquery library linked to on the hosted google libraries page. Is there some sort of convention that i'm missing that is limiting this functionality? do some web servers block ajax requests? It's working perfectly in my localhost wamp environment. What could i possibly look into to resolve this ajax discrepancy? If it comes to it, i'll pay for hosting, but i just want to make sure this isn't a consistent topic with many host providers where ajax needs to be specially configured or something.
github.com/maximus1127/drive ....this is the github repo. the file in question is drive/resources/views/auditor_pages/application_review.blade.php.
To login the browser, go to https://makemedrive.000webhostapp.com/ login with "aa#aa.com" pw "password". Click the instructors tab on the left, then instructor application, then view details. The "save notes", "background check/received" buttons are all the ajax features of this page and none of them work. They all produce 404 errors. Please help!
Thanks in advance!

Serving HTML snapshot from alternative server when using #! and _escaped_fragment_

We currently are developing a set of (jquery)plugins to use our software from the sites of our clients. Our clients include these plugins in their pages, the plugins get their data from our API (on another server) and render the application in the client-page.
Within the plugins de user navigates through hash-changes. We really like to do some SEO for these urls. Google provides a way to index ajax-enabled sites through providing HTML snapshots as alternative content: https://developers.google.com/webmasters/ajax-crawling/docs/specification.
This is all very nice when serving the ajax-enabled application from your own server. But in our situations, the host-page is served on client.com, and our javascripts are served from include.oursystem.com. There plugins get their data through CORS-calls from api.oursystem.com. We have no access to the server of client.com.
Long story, short question: is there a way of serving the HTML snapshots from an alternative server we control, e.g. from api.oursystem.com? Or are there other alternative for indexing our application on the client pages?

SEO-friendly static snapshots of single-page web apps without using a dynamic server

Scenario:
I'm hosting a single-page application on GitHub Pages. When accessed via browser, JavaScript processes #! URLs and updates the UI.
I also want my app's content to appear in search results. Since I'm using GulpJS already, I want to add a task to create and save pre-rendered HTML snapshots of my page to accommodate web crawlers.
Problem:
My content is served by GitHub Pages, so I don't have any way to handle the _escaped_fragment_ parameter that web crawlers send. Every tutorial I've found on AJAX SEO assumes you are hosting your content on e.g. a NodeJS or Apache server and have a way to process such URL parameters.
Question:
Can a single-page web app be SEO-friendly when hosted on a static file server (e.g. GitHub Pages)? Is there a special directory I can use? Some special Sitemap or robots.txt configuration? Something else?
What I've found already:
Frequently Asked Questions (via Google Webmasters)
How do I create an HTML snapshot? (via Google Webmasters)
AngularJS and SEO (via Yearofmoo)

Is it Possible to publish two Websites, one in JSP and another in ASP.net with same domain name?

I want to publish two different websites one in JSP and another in ASP.net with same domain name because I am working on asp.net site and i want to add some features of jsp so i will design these features in jsp.
With proper configuration of your server you could probably send requests to either one app or the other. You'd also have to consider how sessions are supposed to be shared between the applications etc.
I'd probably add some base-url to both applications, and use this to make the server redirect the request to the correct app:
ASP.NET app: your.domain.com/asp/
J2EE app: your.domain.com/j2ee/
Have a rewrite-cond on the asp/j2ee parts and do what you'd normally do to serve the request.

Resources