logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache Configeration
Author
housedad



Joined: 17 Mar 2013
Posts: 2
Location: Australia, Geraldton

PostPosted: Mon 18 Mar '13 0:25    Post subject: Apache Configeration Reply with quote

A friend has installed Apache via XAMPP on my windows 7 (64) PC. The sole purpose of my wanting Apache on my computer is to view my website editing on a localhost server before I upload to my web server, stablehost.com, as all the files are *.php.

I have created a server name and have an htaccess file in the first sub directory out of 500 in the main directory and can access that. But is there a way to bring up an index of ALL the subs so I do not have to amend the httpd and htaccess files every time I want to view another sub. Plus every time I amend those config and htaccess files I have to re-start Apache!

My Config reads:

</Directory>

<Directory "C:/content/3G">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks Includes ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
Require all granted

</Directory>

and virtualization is:

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@host.example.com
DocumentRoot C:/content/3D
ServerName articles
ErrorLog logs/articles-error_log
TransferLog logs/articles-access_log
</VirtualHost>

htaccess is:

#<Directory "C:/content/3D">
# Order Allow,Deny
# Allow from all
# Deny from ***.***.***.*** (my IP)
#</Directory>

Your help would be appreciated. I am a 70 year old man with a heart condition who cannot do much else than create websites and learn about these things.

I would like to learn more about Apache now it is installed but my brain is not quite as fast as in years past!!

Cheers,

John
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7306
Location: Germany, Next to Hamburg

PostPosted: Mon 18 Mar '13 16:37    Post subject: Reply with quote

htaccess will be inherited to all subdirectories, If you put not <Directory "WHAT_EVER"> arround it.
Back to top
housedad



Joined: 17 Mar 2013
Posts: 2
Location: Australia, Geraldton

PostPosted: Tue 19 Mar '13 14:38    Post subject: Reply with quote

Thank you... I have since discovered a free program called QuickPHP. Does the job without Apache or PHP installation.

I'm grateful for your post.
Back to top


Reply to topic   Topic: Apache Configeration View previous topic :: View next topic
Post new topic   Forum Index -> Apache