Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

257
Vistas
Apache vhost: Correct settings for my folder structure?

I'm developing websites with the following structure:

  • Root folder of the website (here: webshop_yamamura)
    • node_modules folder created by npm
    • Frontend folder
      • jQuery scripts folder
      • CSS files folder
      • Other folders filled with html files
      • index.html
      • Other html files
    • Backend folder with PHP scripts
      • secruity folder
      • objects folder
      • and so on...

My httpd-vhosts.conf looks like this:

<VirtualHost *:80>
   DocumentRoot "D:/Programme/XAMPP/htdocs/Projekte/Webshop_Yamamura"
   ServerName zmf-yamamura.local
   ErrorLog "D:/Programme/XAMPP/htdocs/Projekte/Webshop_Yamamura/home/backend/logs/errorlog.log"

   <Directory "D:/Programme/XAMPP/htdocs/Projekte/Webshop_Yamamura">
       Require all granted
       AllowOverride All
       Allow from all
       DirectoryIndex home/frontend/index.html
   </Directory>
</VirtualHost>

The head of every html file looks like this:

  <head>
   <!--- Bootstrap min --->
   <link rel="stylesheet" href="/node_modules/bootstrap/dist/css/bootstrap.min.css">
   <!--- jQuery --->
   <script src="/node_modules/jquery/dist/jquery.min.js"> </script>
   <!--- Popper min --->
   <script src="/node_modules/@popperjs/core/dist/umd/popper.min.js"></script>
   <!--- Bootstrap min js --->
   <script src="/node_modules/bootstrap/dist/js/bootstrap.min.js"> </script>
   <!--- Custom CSS --->
   <link rel="stylesheet" href="format/format.css">
   <meta charset="UTF-8">
   <title>Startseite</title>
  </head>

I've tried several settings, but either it cannot find the npm plugins like Bootstrap or jQuery or he's unable to open the html files in the subfolders. If you type zmf-yamamura.local in the address bar of the browser, it should redirect to the index.html in the frontend folder. What are the right settings for the httpd-vhosts.conf? I'm currently using XAMPP on Windows 10 for testing purposes.

Thank you and stay healthy!

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda