Search Posts

Category: apache

Frontend can not pass kerberos authentication

I’m having a problem with my frontend. I have an apache server acting as a reverse proxy, and has two accessible urls, one is for the frontend and one is for the backend. In addition to that, the apache server is handling SSO authentication using kerberos. If I try to access the backend directly, it works perfectly, but when I try to get the frontend, i’m passing the authentication, and when the frontend tries to […]

Getting Apache PHP responses parallelly for AJAX requests [duplicate]

This question already has an answer here: Why cannot Apache handle multiple requests at the same time? 7 answers My AJAX request takes about 7 seconds to complete. For a page I have many such requests. The server responses almost sequentially for each request. For 10 requests I am getting the response of the last one after 1 minute. Is there a way to get the responses independently? I tried simply $http.get as well as […]

angular-cli development accessing ldap on Apache server

I am in the process of migrating an AngularJS application, with a PHP/MySQL back-end, to Angular-CLI v6. I am using Apache to do an LDAP authentication to our corporate Active Directory. My question is how to do this using the Angular-cli v6 development environment based on NodeJS/npm/ng hosted on my local PC? The the AngularJS project being updated was developed on a remote Apache server. The original app using the following .htaccess at the server […]

Running angular js with webpack NPM along with php server (localhost:8080)

Failed to load http://local.com/test.php: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:9080’ is therefore not allowed access. I would like to run the npm server from the real domain , the same I have apache with php local.com , because I could not test the API calls without be on the same URL Source: AngularJS

AngularJS HTML5 mode with UI Router on apache

I had turned on the html 5 mode on my angular(1.5.8) app a few days back with this code: $locationProvider.html5Mode({enabled:true,requireBase:true}).hashPrefix(‘!’); Later I read configuring apache server for html5 mode with ui-router. After doing these settings, I am facing 2 problems: Browser reload, redirects to home page for every deep nested app link. Any link coming from outside(via email) always redirects to the homepage. I have played with mod_rewrite as-in using <Directory>, FallbackResource on apache. changing […]

Rewrite url htaccess apache angularjs

I am working for the first time with $locationProvider.html5Mode({ enabled: true, requireBase: false }); set to true, so i know i need to create a .htacces file to redirect for reloading purpose. Found many threads here but non of them seem to work for me. I am quite depressed.. I am using: Angular 1.5.7 Apache SimpleHttpServer on Mac for local testing In my .htacces I tried to use something like this: RewriteEngine on RewriteCond %{REQUEST_FILENAME} […]

AJAX issue with Apache .htaccess file

how to AJAX issue with Apache .htaccess file I have removed the hashbang from the URL with the below code. But for an AJAX it is loading the index.html. How can I fix? I have added <base href=”/”> in index.html and $locationProvider.html5Mode(true); in AngularJS controller. Here’s my .htaccess file RewriteEngine On # If an existing asset or directory is requested go to it as it is RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^ […]

Web applications not working properly when hosted to server, works locally. Web pages not rendered too

I created an application using PHP ,AngularJS for front end and NodeJS for back end (Rest API). It has 2 portals for admins and students. When I hosted the application in a Ubuntu server and tested it. This is the output i’m getting from Firefox. It shows me login page and then i have a middle ware of auth.php. Page stops there. I will show you my auth.php file. <?php session_start(); $id = $_POST[‘id’]; $status […]

WebSocket Request (xhr_send) getting stalled (Tomcat and Apache HTTP)

My application used sockjs & Application is running on Tomcat 8 and APACHE HTTP as front end web server. I have observed that xhr_send request getting stalled and so hangs the application. On Chrome developer console, received following error when xhr_send request stalled I never received CONNECTED response. I used following code to setup websocket socket = new SockJS(applicationMainService.getUrl()+’/ws’); stompClient = Stomp.over(socket); Also received following error in Tomcat logs [org.spr[email protected]1e7904b0]: org.springframework.web.socket.sockjs.SockJsException: Uncaught failure in SockJS […]

Next Page »