Pages:1
Downlaoded apache... help a noob out(Click here to view the original thread with full colors/images)
Posted by: Shambler
So i downloaded the newest appache win32 installer. Now im lost, i have it started, but i dont know what to do All i got is the icon in my systray and i can start and stop the sucker and thats it.
Any help is appreciated
Shambler
Posted by: Ritsui
What exactly are you trying to do? Just host a single site?
There is no included GUI for apache, so you need to know how to configure it manually. That means reading the documentation at http:/www.apache.org. Sure, there are probably third party tools to help set it up, but I seriously wouldn't recommend running any server software without knowing what it's doing.
Bottom line is you'll need to do two things:
1) Create a directory for your site files and put your html there.
2) Edit the httpd.conf file (the Apache installer creates a link to it in the start menu) and create Virtualhost entries for whatever sites you'll be hosting.
Posted by: Shambler
Time to start reading i guess
Thank you though 
Posted by: Ritsui
It's not very hard once you get a feel for it, but yeah, you'll have to read a bit 
Here's the VirtualHost entry for this server:
code: <VirtualHost *>
Servername www.tournament.com
ServerAlias tournament.com
ServerAdmin webmaster@tournament.com
DocumentRoot "/home/tcom/public_html"
<Directory "/home/tcom/public_html/myadmin">
AllowOverride AuthConfig
</Directory>
<Directory "/home/tcom/public_html/forums/admin">
AllowOverride AuthConfig
</Directory>
ErrorDocument 404 /missing.php
ErrorLog /home/tcom/logs/tcom-error_log
CustomLog /home/tcom/logs/tcom_access_log common
</VirtualHost>
Notes:
<b>VirtualHost</b> A "Virtual host" is simply one of multiple domains we can host on this machine. When you have more than one domain name on a single IP address, you need Virtual hosts to configure each separately. The asterisk means this Virtual host listens on all IP addresses. If we put a single IP there, Apache would only serve requests for this Virtual Host if they came from that exact IP address. This machine has multiple IP addresses, so I could put 192.168.0.5 there to serve Tcom up only to LOCAL requests.
<b>Documentroot</b> is the "base" directory for this domain. Nothing above that directory will be publicly available. This is extremely important. If you were to use DocumentRoot "/" (or DocumentRoot "C:/" under Windows), you would make your entire filesystem open to the public.
<b><Directory></b> specifies options for individual directories. In this case, we're tell Apache to allow password protection (AuthConfig) in certain directories.
<b>ErrorDocument</b> says what happens when an error occurs. In this case we replace the default "file not found" (404) message with our own script.
<b>ErrorLog/Customlog</b> simply say where we want to put log files for this Virtual Host.
Posted by: Rurouni Storm
If you were running Linux, I would've recommended Webmin. It makes setting up servers a breeze.
Posted by: Ritsui
Even with Webmin, you still have to know how to setup an Apache Virtualhost by hand. Yeah, Virtualmin will do it automatically, but that's overkill if you just want to host a few sites from home.
|
|