The index of a project does not open
Posted by: prox108 (---.cm.vtr.net)
Date: January 05, 2019 05:37PM

When I access the localhost and select a project, it redirects me to a page that says "Unable to access this website, it was not possible to find the IP address of the site1 server". It is assumed that when I select a project the index.php should be opened by default, but it should not.
Does anyone know how to fix it?
Here I leave a part of my httpd.conf related to this problem:

#DirectoryIndex: sets the file that Apache will serve if a directory
#is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

#

Options: ReplyQuote
Re: The index of a project does not open
Posted by: RiggsFolly (Moderator)
Date: January 05, 2019 05:59PM

Hi,

Please start all new questions with the answers to ALL of these question READ (and answer) BEFORE YOU ASK A QUESTION{/url]

And then read this thread [
forum.wampserver.com] and then this one [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: The index of a project does not open
Posted by: Otomatic (Moderator)
Date: January 05, 2019 06:11PM

Hi,

> It is assumed that when I select a project the index.php should be opened by default, but it should not.
NO. It is assumed that when selecting a domain name, i.e. a VirtualHost, the index.php file must be opened by default.
By choosing to "launch" a folder (this is what you do when launching a project) there is no domain name or VirtualHost, so the DirectoryIndex directive cannot be applied.

I repeat the end of the answer of RiggsFolly:
See The need for Virtual Host and Wampserver 3 - Create or add a VirtualHost

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.