SOLVED - he said it works !!
SOLVED - he said it works !!
SOLVED - he said it works !!
Quote:
Originally Posted by sraidr69
Again I am running Mint 17.2 that I upgraded from Mint 14. My localhost on 14 was "/var/www". I noticed there is a /var/www/html/ in 17.2 so I moved "mysite" from /www into /www/html and it works and the url is localhost/mysite. I am fine with this, just wondering if anybody knows about this?
|
debian is famous for changing all the "compiled defaults" in software, so that if you got apache and compiled it and configured a site: it'd be broken in awful ways
not surprisingly not only do they hack the compile defaults: but change them as well so that if you worked with "debian's defaults" you are then also "up the creek"
---------------------
don't know if anyone mentioned it: but this is a reason to check into apache's help documentation (installed by default, accessible on apache.org as well)
VirtualHost can be used to "encapsulate" your site so it is not dependant on distributor hacks. it ALSO is the "right way" to host multiple websites using one server (many IP addresses routed to one fast server hosting many .com) or just many websites each in a directory under the main url (myhost/a/index.html, myhost/b/index.html)
<VirtualHost localhost:80>
ServerName foo.com
ServerAdmin
webmaster@foo.com
DocumentRoot /var/www
# paste your old website's httpd.conf here
# NOT incl. a few globals in "the real httpd.conf"
</VirtualHost>
<VirtualHost new.com:80>
ServerName foo.com
ServerAdmin
webmaster@foo.com
DocumentRoot /var/new.com
RewriteEngine on
ErrorLog /var/log/new.com.log
# paste hosted website here
</VirtualHost>
EACH WEB SITE (or IP, either) has it's own conf encapsulated in a VirtualHost "markup", and are called "virtually hosted", but it works just like httpd.conf really, it's easy and works same way, likely your "real httpd.conf" just #include each virtual site and contains only globals
there can be many virtualhost as needed