I have a file
/etc/http/conf.d/virtual.conf
where I have all my websites configured. The simplest config I have is for
the localhost (one of them don't let the number 2 confuse you.) Apache2
automatically includes all .conf files from conf.d directory.
<VirtualHost 127.0.0.2:80>
ServerAdmin webmaster@localhost
DocumentRoot /data/www/mysite.pop
ServerName mysite.pop
ErrorLog logs/access_log combined
</VirtualHost>
<VirtualHost 192.168.1.10:80>
ServerAdmin webmaster@localhost
DocumentRoot /data/www/mysite2.pop
ServerName mysite2.pop
ErrorLog logs/access_log combined
</VirtualHost>
Then in the "/data/www/mysite.pop" I have my web files.
(Or in mysite2.pop.)
Petri
> I chmod -R 777 on my root directory by mistake.I had to reinstall and
> now have to re-configure my Apache etc.I always hate this part...its
> like evrything is locked down.I try to go to 127.0.0.1 to view my
> index.html page and I keep getting errors.If I go to 127.0.0.1:631 I
> can pull up the CUPS admin page. What needs to be done to correct all
> this the easy way.
> Help....anything , I appreciate it.
> Charles
>
> ___________________
> Nolug mailing list
> nolug@nolug.org
>
___________________
Nolug mailing list
nolug@nolug.org
Received on 11/01/04
This archive was generated by hypermail 2.2.0 : 12/19/08 EST