Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

455
Views
local assets(css/js) not found when using apache virtual host

I've added 127.0.0.1 my.pro to my hosts file

and add below code to httpd-vhosts

 <VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/ci4/public"
    ServerName my.pro
    ErrorLog "logs/myproject-error_log"
    CustomLog "logs/myproject-access_log" common
</VirtualHost>

the problem is i can't reffer to my assetes.
assetes and project index page are in defferent directories.

-ci4
--public
---index.php
--assets
---css

C:/xampp/htdocs/ci4/public is project root and i locate assetes in C:/xampp/htdocs/ci4/assetes .

when I try to load a CSS file with this resource http://my.pro/assets/css/style.css it shows 404 error. I know apache tries to load file from C:/xampp/htdocs/ci4/public/assets/css/style.css which doesn't exist.

but I have no idea how to fix it!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!