Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache setup-server, domain

Status
Not open for further replies.

vcsinfo

IS-IT--Management
Dec 1, 2005
114
US
Hi,
New to apache.
I setup Apache on my xp home to do a personal server. Works great, I can get to and what ever directory I put in the httd.conf file.
The main question concerns how the initial setup went, for server info I have:
Network domain: promail.ptd.net
Server name: promail.ptd.net
The promail.ptd.net is what I use to log to my email pop server. Is this the right info to use? Also, I am attempting to use dynDNS software so it can be accessed from the outside.
Any ideas, hints, tips?
Thanx in advance.
 
No, do not use your webmail server's domain name. Use your own domain name. If you do not have one, you'll either need to get one or access the web server by IP address only.
 
ah..i see.
I signe dup for a "domain" with dnyDNS. Assuming that works, then I would put in that domain name I configured from DnyDNS.
That sounds right.
Ill let you know what happens.
 
Well it worked for awhile...now im befuddled
I setup a temporary <direcotry to share so I can make sure it all works. I had been able to get there no problems.
So now I have the real folder I want all to get too.
So in the httpd I remmed out the test
# <Directory "C:/test">
now I have
<Directory "c:/shared">

Now when I goto the http I get - You don't have permission to access / on this server.(if server is stopped, I get dns, cannot load page so I know Im hitting something)
So its a password thing methinks

I need specifics on how to create pw to get into any new directory.

As far as I know its:
httpasswd -c /shared/password username
gah, its gotta be this pw/username thing, I just dont understand the syntax
 
Apache is saying it doesn't have permission to access that directory. What you need to do is make sure it is in apache's webspace. First of all, if you want to go there when you enter the domain name in your browser, you will need to make that directory your DocumentRoot. This is where all your web pages will go. Then you need to create a Directory container for that directory to tell apache who can do what in that directory and its subs. after editing httpd.conf, make sure you restart apache.

 
ok, I see the idea behind it but I cant seem to get it in place.
And I dont understand by making the directory the DocumentRoot.
By adding <Document "c:/shared"> does this not do it?

And in order to put a pssword and username on this directory, how should the syntax be?
Should it be httpasswd -c c:/shared/password username?

sorry to be a pest, maybe I need Apache for dum dums..

thanx in advance as usual
 
Here is an example of a vhost container. You can copy and paste it into your .conf file and just replace "domain" with your actual domain name. This is if you do not want to use pasword protection.

Code:
<VirtualHost *:80>
    ServerAdmin webmaster@domain.org
    DocumentRoot /var/[URL unfurl="true"]www/domain/html[/URL]
    ServerName domain.org
    ErrorLog /var/[URL unfurl="true"]www/domain/logs/error_log[/URL]
    CustomLog /var/[URL unfurl="true"]www/domain/logs/acess_log[/URL] common


    <Directory "/var/[URL unfurl="true"]www/domain/html">[/URL]

       Options Indexes FollowSymLinks
       AllowOverride None
       Order allow,deny
       Allow from all

    </Directory>

    ScriptAlias /cgi-bin/ "/var/[URL unfurl="true"]www/domain/cgi-bin/"[/URL]

    <Directory "/var/[URL unfurl="true"]www/domain/cgi-bin">[/URL]
       AllowOverride None
       Options None
       Order allow,deny
       Allow from all
    </Directory>

</VirtualHost>

If you want to use authentication, then check out this link:
If you still have questions, don't be afraid to come back here and we'll be glad to help you out.
 
nice thats helpful. For some reason I can never visualize this stuff, I need to see exact syntax or my brain locks up tighter than a BSOD..

many thanx
 
YAHOO!!! the light are on adn someones home..you gave the corret info Rhythm. The key was setting documentroot.
MANY THNX indeed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top