Serve another(standalone) page or static file in website built with react

This should work: const reload = () => window.location.reload(); <Router> // all your routes.. … // Your special routes.. <Route path=”/sitemap.xml” onEnter={reload} /> <Route path=”/something.html” onEnter={reload} /> </Router> So, I think this should be pretty clear what it does 😉 Update: if this is an option you can simply put target=”_blank” attribute in your <Link> … Read more

ImportError: No module named django.core.handlers.wsgi in install django mod_wsgi config on apache

I solved the problem by adding location of site-packages, where I have kept django subdirectory (/Library/python/2.7/site-packages) to WSGIDaemonProcess: WSGIDaemonProcess www.example.com processes=2 threads=15 display-name=%{GROUP} python-path=/Library/python/2.7/site-packages If you are using embedded server mode use in httpd.conf: WSGIPythonPath /Library/python/2.7/site-packages

Options FollowSymLinks or SymLinksIfOwnerMatch is off

Watch that the directory where your web application is living, is not included in another parent directory which has restricted FollowSymLinks. The solution is to enable FollowSymLinks at the top directory (parent directory) or move your web application to a directory outside of the scope of the “no FollowSymLinks” in parent directory. For example, the … Read more

JS and CSS files in vagrant not properly encoded when saved outside of the VM

I had this problem this morning. Set EnableSendfile to off in your httpd.conf. If you look at your httpd.conf it says “turn this off if you serve from NFS-mounted filesystems.” In http://httpd.apache.org/docs/2.2/mod/core.html#enablesendfile it explains that “By default, when the handling of a request requires no access to the data within a file — for example, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)