logoalt Hacker News

cyphar • today at 10:53 AM • 1 reply • view on HN

Ah yes, htaccess. Another lovely source of security bugs for the past 30 years and may it continue to bear skiddie fruit for another 300.

Its model is fundamentally flawed precisely because it was based on the fundamentally flawed PHP model (website assets and code are stored and hosted from the same webroot). This allowed for shared hosting to exist but containers and reverse proxies are a far better way of organising such sites today.

The fact that in other webservers the server's configuration is configured through its configuration file and not the content of its webroot is a feature.


Replies

anonreplier • today at 11:53 AM

Yes apache has a config file too amazingly enough, .htaccess is optional

➕ show 1 reply