Old screenshot links (http://localhost/MyFolder), No longer work..
Posted by: twingall1 (---.customer.gigaclear.net)
Date: November 12, 2022 04:19AM

I used WAMP(3.2.3) for over a year now, purely as a way to hyperlink to my own screenshots.

I recently had to re-install WAMP (still using 3.2.3), but now only way i can create an 'index of' page is via virtual host (not direct, local host)

i.e. it used to be:

localhost/MyFolder

but now it is:

IndexPage/MyFolder

..so none of the thousands of old screenshot links work anymore.

Is there a way to fix this; to make MyFolder just sit right inside 'localhost' like before ??

I really hope there is an easier way to fix this other than to manually go through every old link and switch the prefix from:

"http: //localhost/"

to

"file:///H:/www/"

Please give me some good news!



Edited 7 time(s). Last edit at 11/12/2022 04:50AM by twingall1.

Options: ReplyQuote
Re: Old screenshot links (http://localhost/MyFolder), No longer work..
Posted by: Otomatic (Moderator)
Date: November 12, 2022 09:15AM

Hi,

Ricght-Click -> Wamp settings -> Caution: Risky! - Only for experts -> Allow links on projects homepage

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

Options: ReplyQuote
Re: Old screenshot links (http://localhost/MyFolder), No longer work..
Posted by: twingall1 (---.customer.gigaclear.net)
Date: November 12, 2022 02:48PM

Thanks for response.

I tried this 'allow links on project homepage' (only possible with latest version 3.2.6)
But still ran into the problem of not being allowed to create a virtual host named localhost; not being able to use localhost for anything other than the splash page

I also tried 'don't check duplicate server name' and 'don't check Virtual Host definitions' then creating virtual host named 'local host' ...
>>"Forbidden You don't have permission to access this resource" in browser

then tried deleting 'www' in the wamp64 folder and replacing it with shortcut to MY 'www' on H:/
>>No success

then tried writing an alias (in wamp64/alias) to redirect to my H:/www ..
>>"Forbidden You don't have permission to access this resource" in browser

As you can probably tell i'm somewhat shooting in the dark here and not having deep understanding. I'm just ust trying my best to 'trick' the system into thinking localhost = H:/www, lol

On the off chance there's some extra easy step i'm missing, please let me know.

Otherwise i'll begin the laborious process of editing the prefix of all my old links.

Thanks,
T



Edited 1 time(s). Last edit at 11/12/2022 02:54PM by twingall1.

Options: ReplyQuote
Re: Old screenshot links (http://localhost/MyFolder), No longer work..
Posted by: twingall1 (---.customer.gigaclear.net)
Date: November 12, 2022 03:13PM

Aha! Fixed now..
had to edit httpd-vhosts.conf in
C:\wamp64\bin\apache\apache2.4.51\conf\extra

changing these lines:

DocumentRoot "H:/www"
<Directory "H:/www/">

phew!

I expect this would not have worked without your tip , so thankyou kindly!

T

Options: ReplyQuote
Re: Old screenshot links (http://localhost/MyFolder), No longer work..
Posted by: Otomatic (Moderator)
Date: November 12, 2022 04:22PM

Hi,

> But still ran into the problem of not being allowed to create a virtual host named localhost;
> not being able to use localhost for anything other than the splash page

Obviously, localhost is and must remain the home page of Wampserver, just as your own files should not be put in the wamp(64)/www/ folder.

You don't have to modify the VirtualHost localhost but add your own!

You should read or re-read :
The need for Virtual Host
and
Wampserver 3 - Create or add a VirtualHost

The Wamp parameter to change that I told you before allows you to create links in the "Your Projetcts" list on the Wampserver homepage

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



Edited 1 time(s). Last edit at 11/12/2022 04:25PM by Otomatic.

Options: ReplyQuote


Sorry, only registered users may post in this forum.