server - Apache access to /www denied -


when try acces site i'm hosting wampserver 2.4.18 error 403 : don't have permission access /www on server.

i've been looking time , don't think mu httpd.conf problem.

my httpd.conf :

# # main apache http server configuration file.  contains # configuration directives give server instructions. # see <url:http://httpd.apache.org/docs/2.4/> detailed information. # in particular, see # <url:http://httpd.apache.org/docs/2.4/mod/directives.html> # discussion of each configuration directive. # # not read instructions in here without understanding # do.  they're here hints or reminders.  if unsure # consult online docs. have been warned. # # configuration , logfile names: if filenames specify many # of server's control files begin "/" (or "drive:/" win32), # server use explicit path.  if filenames *not* begin # "/", value of serverroot prepended -- "logs/access_log" # serverroot set "/usr/local/apache2" interpreted # server "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" # interpreted '/logs/access_log'. # # note: filenames specified, must use forward slashes # instead of backslashes (e.g., "c:/apache" instead of "c:\apache"). # if drive letter omitted, drive on httpd.exe located # used default.  recommended supply # explicit drive letter in absolute paths avoid confusion. serversignature on servertokens full  # # serverroot: top of directory tree under server's # configuration, error, , log files kept. # # not add slash @ end of directory path.  if point # serverroot @ non-local disk, sure specify local disk on # mutex directive, if file-based mutexes used.  if wish share # same serverroot multiple httpd daemons, need change @ # least pidfile. # serverroot "d:/software/wamp64/bin/apache/apache2.4.18"  define apache24 apache2.4  # # mutex: allows set mutex mechanism , mutex file directory # individual mutexes, or change global defaults # # uncomment , change directory if mutexes file-based , default # mutex file directory not on local disk or not appropriate # other reason. # # mutex default:logs  # # listen: allows bind apache specific ip addresses and/or # ports, instead of default. see <virtualhost> # directive. # # change listen on specific ip addresses shown below # prevent apache glomming onto bound ip addresses. # #listen 12.34.56.78:80 listen 0.0.0.0:80 listen [::0]:80  # # dynamic shared object (dso) support # # able use functionality of module built dso # have place corresponding `loadmodule' lines @ location # directives contained in available _before_ used. # statically compiled modules (those listed `httpd -l') not need # loaded here. # # example: # loadmodule foo_module modules/mod_foo.so # start of loadmodule part ... end of loadmodule part   # # if wish httpd run different user or group, must run # httpd root , switch. # # user/group: name (or #number) of user/group run httpd as. # practice create dedicated user , group # running httpd, system services. # user daemon group daemon  </ifmodule>  # 'main' server configuration # # directives in section set values used 'main' # server, responds requests aren't handled # <virtualhost> definition.  these values provide defaults # <virtualhost> containers may define later in file. # # of these directives may appear inside <virtualhost> containers, # in case these default settings overridden # virtual host being defined. #  #     # serveradmin: address, problems server should # e-mailed.  address appears on server-generated pages, such # error documents.  e.g. admin@your-domain.com # serveradmin admin@example.com  # # servername gives name , port server uses identify itself. # can determined automatically, recommend specify # explicitly prevent problems during startup. # # if host doesn't have registered dns name, enter ip address here. # servername <private - ip>:80  # # deny access entirety of server's filesystem. must # explicitly permit access web content directories in other # <directory> blocks below. # <directory />     allowoverride none     require denied </directory>  # # note point forward must allow # particular features enabled - if something's not working # might expect, make sure have enabled # below. # hostnamelookups off  # # documentroot: directory out of serve # documents. default, requests taken directory, # symbolic links , aliases may used point other locations. # documentroot "d:/software/wamp64/www/wordpress" <directory "d:/software/wamp64/www/wordpress/"> # # possible values options directive "none", "all", # or combination of: #   indexes includes followsymlinks symlinksifownermatch execcgi multiviews # # note "multiviews" must named *explicitly* --- "options all" # doesn't give you. # # options directive both complicated , important.  please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # more information. # #options +indexes +followsymlinks options indexes followsymlinks  # # allowoverride controls directives may placed in .htaccess files. # can "all", "none", or combination of keywords: #   allowoverride fileinfo authconfig limit # allowoverride  # # controls can stuff server. #  #   onlineoffline tag - don't remove require granted  </directory>  # # directoryindex: sets file apache serve if directory # requested. # <ifmodule dir_module>     directoryindex index.php index.php3 index.html index.htm </ifmodule>  # # following lines prevent .htaccess , .htpasswd files being # viewed web clients. # <files ".ht*">     require denied </files>  # # errorlog: location of error log file. # if not specify errorlog directive within <virtualhost> # container, error messages relating virtual host # logged here.  if *do* define error logfile <virtualhost> # container, host's errors logged there , not here. # #errorlog "logs/error.log" errorlog "d:/software/wamp64/logs/apache_error.log" etc. etc. (i don't think next part issue 

i seem have done multiple different sites/forums/video's instructed yet none of fixed issue

i have

  • forwarded port 80
  • added firewall rule port 80
  • ... else?

thanks in advance , please not hesitate ask further questions/edit question

i assuming have wampserver 3+ installed

in case need edit

\wamp\bin\apache\apache{version}\conf\extra\httpd-vhosts.conf 

file , add access control statements there.

as of wampserver 3, localhost has virtual host defined it, , means apache ignores access right changes in httpd.conf file

if have installed wampserver 3.0.6 upgrade, there should menu item open editor on file automatically

wampmanager -> apache -> httpd-vhosts.conf 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -