Alias folder no longer working
Posted by: Kushtakaa (---.cdn77.com)
Date: September 04, 2023 03:19PM

I have had a wampserver running for years and now after a reinstall and restore from backup (due to hardware failure) my alias's no longer seem to work. I have all my images for the site in an alias so they cannot be ripped from the site.

I am running the latest 64bit version of wampserver on Windows 11, here is the code for my alias, is there anything that I have missed?

Alias /astronomy "C:/wamp64/_astronomy/"
<Directory "C:/wamp64/_astronomy/">
Options +Indexes +FollowSymLinks +MultiViews
AllowOverride all
Require all granted

</Directory>

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Otomatic (Moderator)
Date: September 04, 2023 04:36PM

What is the name of the alias file and where is it located?

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

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Kushtakaa (---.cdn77.com)
Date: September 05, 2023 05:04AM

its called astronomy.conf and is located in C:\wamp64\alias

Set up using the create alias from the artesan menu



Edited 1 time(s). Last edit at 09/05/2023 05:05AM by Kushtakaa.

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Otomatic (Moderator)
Date: September 05, 2023 10:34AM

Hi,

Check that your alias is loaded by Apache :

Left-Click -> Apache -> Apache tools -> Show Apache loaded includes

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

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Kushtakaa (5.133.46.---)
Date: September 06, 2023 05:35PM

Looks like its loading

Apache includes
Included configuration files:
(*) C:/wamp64/bin/apache/apache2.4.54.2/conf/httpd.conf
(551) C:/wamp64/bin/apache/apache2.4.54.2/conf/extra/httpd-autoindex.conf
(563) C:/wamp64/bin/apache/apache2.4.54.2/conf/extra/httpd-vhosts.conf
(591) C:/wamp64/alias/actors.conf
(591) C:/wamp64/alias/adminer.conf
(591) C:/wamp64/alias/archimages.conf
(591) C:/wamp64/alias/artwork.conf
(591) C:/wamp64/alias/astronomy.conf
(591) C:/wamp64/alias/phpmyadmin.conf
(591) C:/wamp64/alias/phpmyadmin4.9.7.conf
(591) C:/wamp64/alias/phpsysinfo.conf


--- Do you want to copy the results into Clipboard?
--- Press the Y key to confirm - Press ENTER to continue...

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Otomatic (Moderator)
Date: September 07, 2023 08:47AM

Yes, the astronomy alias is loaded, as are the actors, archimages and artwork aliases.

If there's no problem with the latter three, then there's only a problem with astronomy!

Does the folder C:/wamp64/_astronomy/ exist?
Are the files there?

Reset the log files using Wampserver's built-in tools, then once you've identified the problem with the astronomy alias, check the apache_error.log and access.log log files.

In access.log, when the "images" are correctly loaded, there's a code 200 :
127.0.0.1 - - [07/Sep/2023:08:44:10 +0200] "GET /wampthemes/classic/img/gifLogo1.gif HTTP/1.1" 200 2681
127.0.0.1 - - [07/Sep/2023:08:44:10 +0200] "GET /wampthemes/classic/img/pngFolderGo.png HTTP/1.1" 200 694
127.0.0.1 - - [07/Sep/2023:08:44:10 +0200] "GET /wampthemes/classic/img/pngWrench.png HTTP/1.1" 200 741

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

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Kushtakaa (---.datapacket.com)
Date: September 08, 2023 03:18AM

Yes the astonomy alias works when going to

localhost/astronomy

it shows the files

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Otomatic (Moderator)
Date: September 08, 2023 09:14AM

> it shows the files

So there's a problem in your code.

And, as written above, go and check the log files.

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

Options: ReplyQuote
Re: Alias folder no longer working
Posted by: Kushtakaa (---.vm5.cable.virginm.net)
Date: September 09, 2023 10:02PM

Never mi9nd, its working now smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.