<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 151: 404 for external css and js files</title><link>https://sourceforge.net/p/cppcms/bugs/151/</link><description>Recent changes to 151: 404 for external css and js files</description><atom:link href="https://sourceforge.net/p/cppcms/bugs/151/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 23 Apr 2018 03:03:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cppcms/bugs/151/feed.rss" rel="self" type="application/rss+xml"/><item><title>404 for external css and js files</title><link>https://sourceforge.net/p/cppcms/bugs/151/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">vandana chadha</dc:creator><pubDate>Mon, 23 Apr 2018 03:03:03 -0000</pubDate><guid>https://sourceforge.net4214f82c0ade808f0421cef6090861b351cc7686</guid></item></channel></rss>