You can properly find vHost tutorials for Apache (HTTPD) and Lighttpd by ease on the internet.
But, how about Nginx?
There are tutorials for Virtual Hosts, but to make FastCGI to work, there’s only one site (our source).
We’ll make one tutorial more about Nginx.
This is about more Virtual Hosts at a time.
In this example, we use /var/www/domain#.tld as an example.
Feel free to change it.
Now, do this:
cd /var/www
mkdir domain1.nl
mkdir domain2.org
And now, edit “default”.
nano /etc/nginx/sites-available/default
We made a working version of our configuration, so you’ll only need to change the paths and domains.
Note: We give examples for domains with “www.”.
You’ll need to add ones without “www.”.
Changable values are bold.
server {
listen 80;
server_name www.domain1.nl;
location / {
index index.php index.html;
root /var/www/domain1.nl;
}
# # this sends all non-existing file or directory requests to index.php
# if (!-e $request_filename) {
# rewrite ^(.+)$ /index.php?q=$1 last;
# }
location ~ \.php$ {
fastcgi_pass localhost:53217; # port where FastCGI processes were spawned
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/domain1.nl$fastcgi_script_name; # same path as above
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
}
}
server {
listen 80;
server_name www.domain2.org;
location / {
index index.php index.html;
root /var/www/domain2.org;
}
# # this sends all non-existing file or directory requests to index.php
# if (!-e $request_filename) {
# rewrite ^(.+)$ /index.php?q=$1 last;
# }
location ~ \.php$ {
fastcgi_pass localhost:53217; # port where FastCGI processes were spawned
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/domain2.org$fastcgi_script_name; # same path as above
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param DOCUMENT_URI $document_uri;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param GATEWAY_INTERFACE CGI/1.1;
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
fastcgi_param REMOTE_ADDR $remote_addr;
fastcgi_param REMOTE_PORT $remote_port;
fastcgi_param SERVER_ADDR $server_addr;
fastcgi_param SERVER_PORT $server_port;
fastcgi_param SERVER_NAME $server_name;
# required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;
}
}
}
That’s all.
Now you have a working configuration!
Source: ElasticDog.com.
On every Debian-based VPS, I get this error message after “mysql -u root -p”.
But how to solve the case?
Here’s the tutorial.
On Debian servers, MySQL doesn’t come with a Root user.
Even though you make a Root user, you’ll still won’t be able to do anything.
Instead, look in your Debian.conf.
nano /etc/mysql/debian.conf
Copy the username and password over to your Text Editor.
And now, log in:
mysql -u username-in-your-conf -ppassword-in-your-conf
Yes, “-p” and the password without spaces.
And you’re in, and you can do anything you want!
Sites affacted: YamiHoshi Story, YamiHoshi Tech, Woondroom Goes, Mario Kart CW Project.
Code: DE001.
Description:
My other server was way to slow with 7 sites/6 domains.
So I had to split the sites: Small sites on VPS1, big sites on VPS2.
As soon as I ordered VPS2, everything has been gone wrong.
It was either a non-working MySQL, non-working OS, non-working Lighttpd, non-working Nginx, or some of them combined.
I hope this will never happen again.
Again, sorry for the huge downtime!
After a the question “How did you make those screenshots?”, I’ll tell it in this very, very long tutorial.
1. Press the sleep and home button at once.
2. Connect your iPhone with a Mac.
3. Open iTunes, make sure you have the right settings and sync with it.
4. Open iPhoto, import them, select them, drag and drop them in a folder.
You’re done!
So many video’s you want to watch, and so less knowledge to Japanese you have…
I’m studying to Japanese, so I’ll help you through the Kana/Kanji Rain.
First, you go to the red link at the top saying ログイン.
Then click the red button below the login field.
Scroll down and click the grey button.
Type in your email address.
Now for the following fields, top to bottom, left to right:
Nickname (min. 2 and max. 16 characters).
Gender (Male, Female) – Don’t ask me why they want to know that.
Date of birth (Year, Month, Day).
Your location (if you scroll down, you’ll also get non-Japanese locations).
Password (twince, just like on all other sites).
Secret question/answer (if you can’t read/understand, just do something random).
And click the first button below the registration form.
Now a simple Captcha.
And lastly, confirm your email address, so you get your User ID (which isn’t anything useful at all).
And some tips:
ドナルド ゼルダ (McDonalds Zelda)
ドナルド ポケモン (McDonalds Pokémon)
ドナルド マリオ (McDonalds Mario)
VOCALOID
Caramelldansen
ウマウマDansen (same as Caramelldansen)
Enjoy the wierdest video’s on the internet!
I know, you can just do this through Mobile Safari, but everything’s small, and it takes really long to load.
Invision Power Services have released an iPhone App, which allows you to do that.
It’s really easy, but I wanted to test out the screenshot feature of my iPod Touch, so I made this tutorial anyway.
Tab the App Store icon.
Search for “invision power services”.
Install IPB.
After installing it, tab it.
Tab the + icon, and do the followings:
Title: Just give it a name.
URL: The link to the forum (so not dshack.org, but http://www.dshack.org/forum).
Username and Password: Your username and password of that forum (registration on that forum needed).
Tab the link.
Here it is, the mobile version of the IP. Board!
I’ve finished migrating almost all sites to my own server.
Domain names affected:
yamihoshi.nl
cw-server.eu
woondroomgoes.nl
mariokartcw.org
thecwnetwork.org
hiuncity.com (New!)
Domain names not affected:
nintenlord.com (many SQL’s and and subdomains makes it a lot harder).
dshack.org (Antagonist doesn’t have the possibility for parking domains + it already has enough space).
Most common problem with Windows is: It won’t boot anymore.
But don’t worry, Microsoft has that solution, and so do I.
Buy a Vista or 7 DVD, which matches your language, version and Service Pack (downloaded ISO’s will also do the trick, but it’s harder to find the good version).
Boot it.
Now, when it asks your country, language and keyboard, click next.
Now you’ll see “Install now”, don’t do that!
Look for “Repair this computer” instead, and click it.
Select the installation and click Next.
Now click the Recovery Console.
And now, these commands:
diskpart
list disk
Look for the right disk.
select disk #
Replace the # with the disk number (most likely 0).
list partition
Look which partitions you have.
Be sure which partition is Vista/7.
select partition #
activate
I had 3 on a customers laptop, and selected all of them, step by step.
exit
bootrec /fixmbr
bootrec /rebuildbcd
bootrec /fixboot
exit
Now, click Startup Repair.
Click finish to reboot your system, and see it booting.
Source: Ubuntu Forums
Idea of writing: A customer with that problem at work.
A new series is here: GUIde.
Not Guide, not guide, but GUIde.
At the moment of writing, I’m on vacation on Center Parcs: Port Zélande.
In Center Parcs, you have to pay 25 euro’s for very busy (= slow and glitchy) internet.
Want to have internet at full speed?
Don’t want to get an annoying login screen from KPN every 5 minutes?
I have the solution!
It started that I’ve brought internet for a whole week.
At first it was from KPN, the worst phone company in The Netherlands.
But also, there’re so many people using it at the same time, you can only check email at night.
All you need to have is:
A laptop with Linux, or any other OS which can handle SSH.
A VPS, or any other way to remotely connect through SSH (Linux required) (if you can’t afford a VPS, try OpenSSH instead).
WiFi.
1. Connect to the HotSpot, like you usually do.
2. Open the Terminal (or PuTTY for Windows users).
3. Type in:
ssh -D 7777 username@ipaddress
Example:
ssh -D 7777 root@437.38.234.54
4. Now go to your browser, and set the Socks Proxy as:
Socks-hostname: localhost
Port: 7777
5. You’re on!
Very simple, free, and stress free!
