Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

Still getting forbidden and not found using virtual host (5 replies)

$
0
0
I created a clean WAMP install at c:\wamp64
I put the folders for the specific webpages at f:\www\site1, f:\www\site2,
f:\www\site3
I followed the Add Virtual host steps from this site, along with several others for help.
I am getting forbidden errors
Forbidden. You don't have permission to access /site1 on this server.
for all sites but localhost.
I can create an alias and modify the file c:\wamp64\alias\site1.conf and so on, but that seems to work around the purpose of the virtual host file.
This site is completely internal to my organizations. I am not concerned with require all granted for anything at the moment nor amI concerned about putting my server online. I just need to get things working properly.
ANy help would be appreciated.


1 - Windows version used ( specify the version (XP, Vista, 7, 8, 10) and if 32 or 64 bits )
Windows Server 2012 R2 Standard (64-bit)

2 - Version of Wampserver ( Specify version (2.x, 3.0.x) and if 32 or 64 bits )
Wampserver 3.0.4_x64

3 - Apache version (please specify version)
Apache 2.4.18

4 - PHP version (please specify version)
PHP 5.6.19-7.0.4 using 5.6.19

5 - MySQL version (Specify Version)
MySQL 5.7.11

6 - What color is the WampServer icon (in the notification area of the taskbar)
Green with white border. The server is online

7 - in the file c: \ Windows \ System32 \ drivers \ etc \ hosts, what are the active lines * on the field [localhost]?
127.0.0.1 localhost
::1 localhost

127.0.0.1 site 1
::1 site 1

127.0.0.1 site 2
::1 site 2

127.0.0.1 site 3
::1 site 3

If green Wampserver icon and using the menu of this icon:
8 - Do you have access to localhost (Main Page Home WampServer)?
Yes

9 - Do you have access to phpMyAdmin?
No. Forbidden. You don't have permission to access /phpmyadmin on this server.

- 10 - If you are referring to an error message , thank you for the wording EXACT FULL and the error
Forbidden. You don't have permission to access /site1 on this server.
Forbidden. You don't have permission to access /site2 on this server.
Forbidden. You don't have permission to access /site3 on this server.

- 11 - If you use a Anti- virus and / or a Firewall, thank you to give the names of these
ESET File Security
Ver. 4.5.12017.0

- 12 - What is the full path to the installation of Wampserver (for example D: \ wamp \)
c:\wamp64


Below are the contents of the httpd.conf (comment lines (#) have been removed for space) and the httpd-vhosts.conf


httpd-vhosts.conf
#
# Virtual Hosts
#

<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/wamp64/www
<Directory "C:/wamp64/www/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>

</VirtualHost>

<VirtualHost *:80>
ServerName site1
DocumentRoot f:/www/site1
<Directory "f:/www/site1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName site2
DocumentRoot f:/www/site2
<Directory "f:/www/site2/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

<VirtualHost *:80>
ServerName site3
DocumentRoot f:/www/site3
<Directory "f:/www/site3/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>



httpd.conf

ServerSignature On
ServerTokens Full

ServerRoot "C:/wamp64/bin/apache/apache2.4.18"

Define APACHE24 Apache2.4

Listen 0.0.0.0:80
Listen [::0]:80

LoadModule access_compat_module modules/mod_access_compat.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule allowmethods_module modules/mod_allowmethods.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule auth_form_module modules/mod_auth_form.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_core_module modules/mod_authn_core.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authn_socache_module modules/mod_authn_socache.so
#LoadModule authnz_fcgi_module modules/mod_authnz_fcgi.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule authz_core_module modules/mod_authz_core.so
#LoadModule authz_dbd_module modules/mod_authz_dbd.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule buffer_module modules/mod_buffer.so
LoadModule cache_module modules/mod_cache.so
LoadModule cache_disk_module modules/mod_cache_disk.so
#LoadModule cache_socache_module modules/mod_cache_socache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule data_module modules/mod_data.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule http2_module modules/mod_http2.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule heartbeat_module modules/mod_heartbeat.so
#LoadModule heartmonitor_module modules/mod_heartmonitor.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule lbmethod_bybusyness_module modules/mod_lbmethod_bybusyness.so
#LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
#LoadModule lbmethod_bytraffic_module modules/mod_lbmethod_bytraffic.so
#LoadModule lbmethod_heartbeat_module modules/mod_lbmethod_heartbeat.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_debug_module modules/mod_log_debug.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule lua_module modules/mod_lua.so
#LoadModule macro_module modules/mod_macro.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_express_module modules/mod_proxy_express.so
#LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_html_module modules/mod_proxy_html.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
#LoadModule ratelimit_module modules/mod_ratelimit.so
#LoadModule reflector_module modules/mod_reflector.so
#LoadModule remoteip_module modules/mod_remoteip.so
#LoadModule request_module modules/mod_request.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule sed_module modules/mod_sed.so
#LoadModule session_module modules/mod_session.so
#LoadModule session_cookie_module modules/mod_session_cookie.so
#LoadModule session_crypto_module modules/mod_session_crypto.so
#LoadModule session_dbd_module modules/mod_session_dbd.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule slotmem_plain_module modules/mod_slotmem_plain.so
#LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
#LoadModule socache_dbm_module modules/mod_socache_dbm.so
#LoadModule socache_memcache_module modules/mod_socache_memcache.so
#LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule watchdog_module modules/mod_watchdog.so
#LoadModule xml2enc_module modules/mod_xml2enc.so

LoadModule php5_module "C:/wamp64/bin/php/php5.6.19/php5apache2_4.dll"

<IfModule unixd_module>
User daemon
Group daemon

</IfModule>

ServerAdmin admin@mysties.int

ServerName localhost:80

<Directory />
AllowOverride none
Require all granted
</Directory>

HostnameLookups Off

DocumentRoot "F:/www"
<Directory "F:www/">
Options +Indexes +FollowSymLinks

AllowOverride all

# onlineoffline tag - don't remove
Require all granted
</Directory>

<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

<Files ".ht*">
Require all denied
</Files>

ErrorLog "C:/wamp64/logs/apache_error.log"

LogLevel warn

<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common

<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>

CustomLog "C:/wamp64/logs/access.log" common
</IfModule>

<IfModule alias_module>
ScriptAlias /cgi-bin/ "C:/wamp64/cgi-bin/"

</IfModule>

<IfModule cgid_module>
</IfModule>

<Directory "C:/wamp64/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>

<IfModule mime_module>
TypesConfig conf/mime.types
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

#AddHandler cgi-script .cgi

#AddHandler type-map var

</IfModule>

#MaxRanges unlimited

EnableSendfile off

AcceptFilter http none
AcceptFilter https none

# Fancy directory listings
Include conf/extra/httpd-autoindex.conf

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

Include "C:/wamp64/alias/*"

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>