|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I'm having a hard time wrapping my head around this. I did this once before but now I' stuck. I found 3 decent sites explaining how to do this:
http://ubuntu-tutorials.com/2008/01/...rtual-hosting/ http://www.ubuntugeek.com/howto-crea...in-apache.html http://blog.code4hire.com/2011/03/se...l-development/ The problem is that there are tiny differences between them and I can't reconcile these differences. Does anyone here know how to do this and can give me pointer? This is the line that is snaggin me on the file: /etc/apache2/sites-available/new_virtual_host_site_name Quote:
Quote:
ServerName ICS |
|
#2
|
|||
|
|||
|
The sites-avaliable directoy is where you place the file with the virtual hosts config in. apache loads all the site from that directory.
to create a local domain use .local and either add the ip and domain to your hosts file or to your router (not sure on which part think its DNS). if you post what you have currently we can look through the settings. |
|
#3
|
|||
|
|||
|
You need to add the configuration file in the sites-available directory, then create a sym link to the sites-enabled directory, as this is where apache looks for sites that are enabled. If you are just messing with it locally you can use any extension just point it locally in the host file or the DNS if you use one. Look at the Apache documentation for examples of what the configuration file should look like at its most basic to work http://httpd.apache.org/docs/2.0/vhosts/examples.html
|
|
#4
|
||||
|
|
||||
|
I know I'm way late on this one, but through I'd post an answer anyways for others...
You can have your site in any folder, not just the /var/www/ics directory, you just need to change the location in the conf file. I usually place my sites in /home/www/ics. The .net .local .com, etc... will be added to the config file under ServerName. Then ensure the folder has the proper permission by running the following: Code:
chown -R www-data:www-data /var/www/ics Code:
a2ensite ICS Code:
service apache2 restart or /etc/init.d/apache2 restart |
|
#5
|
||||
|
||||
|
download and install webmin
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|