Preamble The beauty of hosting your own web server and having root access to your machine is the ability to run whatever you want on it. One great example of this is running virtual hosts in apache, which allows you to run multiple websites on the same server. What you can run as a virtual host is fairly unlimited so long as the clients can resolve the address to your web server, be it URL, IP address or even special use domain names if you so desire (though the last one I do not recommend). When setting up Virtual Hosts… Continue reading Adding a Virtual Host to Apache
Making a website can have its pitfalls.
What is hashing? Hashing a password means that users cannot have their passwords compromised when a database engineer is reading cleartext in user databases (to a degree, the passwords could be decoded, but hashing them makes them illegible to someone who is not doing anything extensive). And also prevents hackers from reading passwords in plain text and can be compromised by collision attacks. Additionally when hashing a password a salt may be added to the password, this prevents a database from being attacked by dictionary attacks. Why Hash Passwords? Storing User credentials in Plain Text is generally as bad practice as it allows… Continue reading Using Hashlib to Securely store user passwords and credentials.
Using Apache is Good, but for one website is limiting its potential you can create multiple websites, domains and sub-domains with Apache, see below. First you need to stop your server, you can do this on lunix by entering [box type=”shadow”] $ sudo /etc/init.d/apache2 stop [/box] into your terminal, this allows you to make changes to files in your server without breaking it, for windows you need to stop Apache using Xammp, see below. Now Enable Mod_log_config browse here [box type=”shadow”]xamppapacheconf[/box] and in… Continue reading How to Configure Apache to use Virtual Hosts
I recently played around with Apache and fond it incredibly educational. I used Apache for multiple websites and sub-domains, and its a great web server. and I like Xampp’s user Interface, allowing me to edit, configure and Error check my site. Don’t get me wrong though, there are some downfalls when putting it through its paces using Owncloud I discovered that php supported was only allowing 2GB uploads, because it is 32Bit, I later discovered that Xampp is only 32Bit for Windows. This was a major disappointment for me, but I still found workarounds. Apache is great and easy to… Continue reading Xampp and Apache