I have tested a website on VirtualHost with an index.htm & it works fine. When I install the full website with .htaccess I get: 'This site can’t be reached xxx refused to connect. ERR_CONNECTION_REFUSED'
I edited httpd.config:
I edited httpd-vhost.config:
I restarted the WAMP but still no connection.
.htaccess reads:
I noticed that the httpd.config autocorrects to:
<Directory "${INSTALL_DIR}/www/****/">
I edited httpd.config:
<Directory /> # AllowOverride none # Require all denied # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all </Directory>
I edited httpd-vhost.config:
<VirtualHost *:80> ServerName **** DocumentRoot "g:/wampserver/www/****" <Directory "g:/wampserver/www/****/"> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> <IfModule fcgid_module> Define FCGIPHPVERSION "7.4.33" FcgidInitialEnv PHPRC ${PHPROOT}${FCGIPHPVERSION} <Files ~ "\.php$"> Options +Indexes +Includes +FollowSymLinks +MultiViews +ExecCGI AddHandler fcgid-script .php FcgidWrapper "${PHPROOT}${FCGIPHPVERSION}/php-cgi.exe" .php </Files> </IfModule> </VirtualHost>
I restarted the WAMP but still no connection.
.htaccess reads:
RewriteRule ^ []%{HTTP_HOST}%{REQUEST_URI} RewriteRule ^$ /current/ [R=301,L]
I noticed that the httpd.config autocorrects to:
<Directory "${INSTALL_DIR}/www/****/">