Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

254
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda