<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 151: 404 for external css and js files</title><link href="https://sourceforge.net/p/cppcms/bugs/151/" rel="alternate"/><link href="https://sourceforge.net/p/cppcms/bugs/151/feed.atom" rel="self"/><id>https://sourceforge.net/p/cppcms/bugs/151/</id><updated>2018-04-23T03:03:03.835000Z</updated><subtitle>Recent changes to 151: 404 for external css and js files</subtitle><entry><title>404 for external css and js files</title><link href="https://sourceforge.net/p/cppcms/bugs/151/" rel="alternate"/><published>2018-04-23T03:03:03.835000Z</published><updated>2018-04-23T03:03:03.835000Z</updated><author><name>vandana chadha</name><uri>https://sourceforge.net/u/vandanachadha/</uri></author><id>https://sourceforge.net4214f82c0ade808f0421cef6090861b351cc7686</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am using cppcms ver 1.2, and want to include external css and js files But I get a 404 error for them, even though the files exist in the media folder in my root folder of the app.&lt;/p&gt;
&lt;p&gt;I tried copying the media folder manually to the CMakeFiles folder and infact tried by copying it to all subfolders there. But that didnt work also.&lt;/p&gt;
&lt;p&gt;Still keep getting a 404 error for localhost:8080/media/style.css or any of the other css or js files.&lt;/p&gt;
&lt;p&gt;What is the document root of the cppcms, and if it is the root folder where the code is, then why isnt it able to read them?&lt;/p&gt;
&lt;p&gt;My code is modelled on the examples/message_board sample. Thats also shows a 404 for media/style.css file.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>