Otomatic Wrote:
-------------------------------------------------------
> It would still be necessary to see how the aliases are defined!
aliases are configured in the httpd-vhosts.conf file.
# Localhost
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
Alias /adminer "c:/wamp/apps/adminer4.8.1/"
Alias /phpmyadmin "c:/wamp/apps/phpmyadmin5.1.1/"
Alias /phpmyadmin4.9.7 "c:/wamp/apps/phpmyadmin4.9.7/"
Alias /phpsysinfo "c:/wamp/apps/phpsysinfo3.3.4/"
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
<Directory "c:/wamp/apps/adminer4.8.1/">
Options Indexes FollowSymLinks
AllowOverride all
Require local
</Directory>
<Directory "c:/wamp/apps/phpmyadmin5.1.1/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require local
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
<Directory "c:/wamp/apps/phpmyadmin4.9.7/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require local
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
<Directory "c:/wamp/apps/phpsysinfo3.3.4/">
Options Indexes FollowSymLinks
AllowOverride all
Require local
</Directory>
</VirtualHost>
# My Virtual Host
<VirtualHost *:80>
ServerName xena.cox
ServerAlias xena.cox
Alias /adminer "c:/wamp/apps/adminer4.8.1/"
DocumentRoot "c:/wamp/www/qt"
<Directory "c:/wamp/www/qt/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
<Directory "c:/wamp/apps/adminer4.8.1/">
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
ServerName laner.cox
ServerAlias laner.cox
DocumentRoot "c:/wamp/www/tf"
<Directory "c:/wamp/www/tf/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
With this configuration only localhost and xena.cox will be able to access adminer(Alias). laner.cox will not be able to login to any alias, and trying to login to any alias will show the message "Not Found"
I've tried logging in locally, intranet, and internet, and everything works fine.
If I type localhost in the browser, I can see everything there, my virtual hosts, my aliases, general information, and if I click on the links, it takes me to the corresponding page.
However, at the top of the localhost page I get notices of:
Notice:Undefined Index ServerName in C:\wamp\scripts\wampserver.lib.php on line 797
Notice:Undefined Index DocumentRoot in C:\wamp\scripts\wampserver.lib.php on line 798
Notice:Undefined Index Port in C:\wamp\scripts\wampserver.lib.php on line 799
Notice:Undefined Index Port in C:\wamp\scripts\wampserver.lib.php on line 800
These 4 notices are given for each alias configured with their respective permissions. (For the code that I have attached above, 20 notices are obtained).
Any way to prevent these warnings from appearing from the uwamp console, or anywhere else?
If I included this line in the wampserver.lib.php file, the news disappears.
error_reporting(0);
Should I worry about those warnings?
Despite those warnings, everything works perfectly.