C
C
cyberlain2016-02-08 06:59:44
Apache HTTP Server
cyberlain, 2016-02-08 06:59:44

How to enable absolute path support in apache?

I understand that this is a completely noob question, but something really doesn’t work for me.
Ubuntu OS
Installed Apache, php and mysql
The site is placed in the directory /var/www/html/site
Absolute paths in html

<link href="/css/global.css" type="text/css" rel="stylesheet" />

to which Apache config, where and what to prescribe to make these paths work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Андрей, 2016-02-08
@VladimirAndreev

они никогда не заработают, ну либо ты получишь большие проблемы с безопасностью...
в html пути нужно прописывать от корня сайта.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question