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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache on win 98 2

Status
Not open for further replies.

dvdljns

Technical User
Aug 13, 2003
22
0
0
US
I am trying to setup apache on win 98 and would like some help in a couple areas.

What I would like to do is rewrite the httpd.conf file so it will make some sense. heres what I would like to do.

1. remove everything that does not control something.
2. seperate the virtual config from main config.

Ok first thing is first. if it does not control something it does not need to be there. comments,explanations and all that need to be in a seperate doc.

can I write the config for the main webite in one file with a pointer to a seperate conf. for virtual.

Anybody know how to do this.

 
I know thats one of the things I am trying to change.
 
Thigs used to be that way bak in the oldendays prior to 1.3. There used to be 3 configuration files, httpd.conf, srm.conf and access.conf. Some distros used a vhosts.conf. The name and location of these files were compiled into apache. Nowadays everything is in one file, httpd.conf but as of version 2, I think they added ssl.conf. There are two ways to do what you want. The first is to recompile apache or use the -f option on the command line to specify the configuration file.
 
Just add
Code:
Include conf/vhosts.conf
to your
Code:
httpd.conf
and you can put all your virtual hosts there.

//Daniel
 
Thanks. I will check around for the older documents.
maybe while at it you could explain how to setup this config.
I want one main folder in C:\ called. Inetpub
inside that I want
1. public = my webpage = needs to be open to all
2. build = my workspace = open to admin only
3. uploads= to upload in = write only no read
4.downloads =to download from = read only I think
5.scripts = where the scripts come from = deny all?
6.Images = where the images come from = deny all ?
7.bin = misc = password protected

If I understand it right I can put .htaccess files in each one to control access
How do I do this.
 
1. public = my webpage = needs to be open to all

Standard setup, will be open to all.

2. build = my workspace = open to admin only

Either htaccess or <directory> inside the httpd.conf

3. uploads= to upload in = write only no read

You will need to put this outside your docroot then.

4.downloads =to download from = read only I think

If you don't allow users to write, they won't be able to.

5.scripts = where the scripts come from = deny all?

Nobody will see the scripts then??

6.Images = where the images come from = deny all ?

Again, nobody will see the images.

7.bin = misc = password protected

(See #2)

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
One very important part I neglected to mention was the fact that you are planning to do this on 98.

98 is in no way stable enough to run a public server, if you want to run a server on windows, get a decent version. (2k server etc)

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
98 is in no way stable enough to run a public server, if you want to run a server on windows, get a decent version. (2k server etc)

I just reformated my win 2000 drive and reloaded windows 98 about a month ago. that's not evan a good os. I also have xppro. no I have the os that I want.

My problem is now that I have these folders built on my hardrive.how do I get apache to understand that this is where I want my website. I have read and reread the docs at apache.org and still do not understand it. When I try to change the doc root, I get an error. how do I do this.

.scripts = where the scripts come from = deny all?

Nobody will see the scripts then??

Maybe deny all is wrong. but when I use that mousetrail script I think my webpage can't live without. This is where I want my doc to get the scrip from. nobody needs to be in it except me or my docs. If I could make it hidden from people browsing my site I would. Same thing with Images.


3. uploads= to upload in = write only no read

You will need to put this outside your docroot then

Why isn't that .htaccess does allow me to override settings in docroot,without doing away with those settings.

Basicaly what I want is pretty much the same setup I had with IIS except I don't know how to make it happen in apache.





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top