html - Accessing a file on my domain relative to port -


i running node server on port 3000. have css file stored on http://mydomain.com/style.cssbut since every page right http://mydomain.com:3000/randompage.html how can access style.css file? can http://mydomain.com:3000/styles.css page working on, doesn't exist.

what best way deal situation? suppose applies files need access.

i don't know simple solution using relative url or html magic in page.

the usual solution install module in apache or function in node.js redirect requests other server html, seems coming single source.

this document should started when using apache: using mod_rewrite proxying


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -