Questions tagged apache

Explore the latest questions and answers asked by our top developers.

How to define prerender.io on Angular 10

I want to use Prerender.io on my Angular project using Apache host, and I tried config .htaccess file as samples but still get this message from prerender.io .htaccess # this section for forcing https and www RewriteEngine On RewriteCond %{HTTPS} !^on$ RewriteRule (.*) https://www.example.com/$1 [R,L] RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # this is […]

By Maher
Published
Categorized as .htaccess, angular, apache Tagged , ,

Apache 2 CORS security know error : No ‘Access-Control-Allow-Origin’ header is present on the requested resource. No error in my country but outside

I’m facing a very trouble error. Everybody knows the CORS "classical error " : No ‘Access-Control-Allow-Origin’ header is present on the requested resource. We can easily fixe it with simple configuration, in my case : using a .htaccess file with this settings : <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle […]

By sKuD sKuD
Published
Categorized as angular, apache, cors Tagged , ,

Call the right api url apache

I have a two applications on the same server (Centos 7) front-end (apache) (angular) and back-end (spring-boot). I have the next problem: When I try to call the following URL: "api/service" i dont know why but this transform to "domain.com/api/service" When I had called this api from localhost, i did it with the local proxy. […]

By mateo cunha
Published
Categorized as angular, apache, centos, cors, linux Tagged , , , ,

blocked when accessing files within the bitnami/apache container

I am trying to run an angular application within bitnami/apache:2.4.46 container. but when I try to access the application I am getting blocked responses for some files like styles.js, runtime.js, polyfills.js and main.js. is this something related to file access within the container or am I missing some configuration in my vhost.conf this is the […]

By Priyamal
Published
Categorized as angular, apache, bitnami, docker, javascript Tagged , , , ,

XAMPP Apache server, Could not load file error

I’ve had though times while trying to resolve this problem. I’ve built somje other projects in Angular and deployed to an Apache server easily (just changed <base href="/"> to <base href="./"> and they worked), but not the last project of mine. After I built my Angular app in production mode, I copied pasted the folders […]

By Fatih Ersoy
Published
Categorized as angular, apache, xampp Tagged , ,

Apache Server Acting slow unable to server request when user load increases on server

we are having angular and node applications running on xampp apache 2.4.4.1, with server configuration 8 core CPU and 16GB ram which consumes 1000 concurrent users daily but we are facing slowness if user counts go beyond 400 or 500. We also have enabled httpd-mpm and increased the threadperchild to 10000 but there is no […]

By Aniket Pharale
Published
Categorized as angular, apache, node.js Tagged , ,

Angular – Redirect to index.html when used as a WordPress theme

I have an Angular app on a LAMP stack that loads as a WordPress theme like this in the themes/XXX/index.php: <?php include_once "index.html"; This loads fine when going to the root URL example.com However, I need to redirect all routes to index.html so that the angular app will resolve on any route. example.com/abc will give […]

How to google sign in with .htaccess

Hello i am having a problem in my project. Google sign in doesnt work and i am pretty sure its a .htaccess thing because it doesnt work because i have changed the .htaccess file. This is the .htaccess file i have now. RewriteEngine On #RewriteBase /api/ Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type" Header add Access-Control-Allow-Methods […]

By Cine Asteria
Published
Categorized as .htaccess, angular, apache, php Tagged , , ,

Hosting .NET Core applications along side Angular apps

I just took a new job, and I’m still learning the environment, but my new boss is relying on me to provide technical advice since he isn’t a technical guy. They have a developer on staff who was a MUMPS database programmer, but this last year or two taught himself web development because they didn’t […]

By JasonAlun
Published
Categorized as angular, apache, asp.net-core Tagged , ,

Angular Project deploy without # using useHash and HashLocationStrategy

I am using Apache server to deploy angular project. Without using useHash and useHase:false, I deployed project, it’s not working when copy URL use to redirect other page. I am using .htaccess code: RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] # If an existing asset or directory is requested go to it as […]

1 2 3 9

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq