[Solved] Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 10:52AM

I'm using a fresh installation of Wampserver (64 bits & Apache 2.4) 2.2E
With the FRESH install the aliases SQLbuddy and webgrind give me 403 forbidden page. The .conf for both of these show "require local" so they should be working. This is a fresh install w/o anything altered. I've also tried re-installing from scratch. Is something about this release of WAMP broken? I can't get ANY custom aliases to work remotely either (same 403 forbidden error), and I have port 80 forwarded and the directory set to "Require all granted"

Any help you can provide is greatly appreciated.
Thank you!



Edited 2 time(s). Last edit at 10/22/2012 10:47PM by Drexl.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: October 22, 2012 10:58AM

There was a little bug in one release in this area.

Can you check that the 'require local' in the https.conf file does not have a space in column 1.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 11:11AM

If you mean httpd.conf (not https.conf which I can't find anywhere) the only instance of the phrase 'Require local' appears to be formatted correctly.
It appears on line 265 with four spaces before the word 'Require' just like the spacing of everything else.



Edited 1 time(s). Last edit at 10/22/2012 11:12AM by Drexl.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 11:32AM

On a completely unrelated note (well, maybe a little bit), has any dev realized that 'addAlias.php' uses deprecated apache 2.2 directives? I'm guessing this is a known issue, but perhaps not.

Line 120 should be 'Require all granted'



Edited 1 time(s). Last edit at 10/22/2012 11:33AM by Drexl.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: October 22, 2012 01:43PM

Yes i did mean httpd.conf ( d and s are a bit close on the keyboard and my monday fingers made a woops )


Ok so now check that there is no blank line between this line
# onlineoffline tag - don't remove

and the 'Require local' line.

My guess is that the blank line is not blank but the characters in there are not ascii so our editors dont show whats causing the problem.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 01:51PM

No luck. I tried removing the line entirely then reloading. I also tried adding a carriage return back into it. No difference.

Btw, this is all happening fairly early on in the script. Where you have me looking right now appears to be access control for the root directory. If this is evaluated top down then the aliases don't come into play until the end where the include directive is used. I only bring this up because the phpmyadmin alias works, and any custom alias works (but only locally). I'm guessing all of those are being evaluated at the end.

I'm just making assumptions though since I don't really have that much experience working w/ this.



Edited 3 time(s). Last edit at 10/22/2012 02:17PM by Drexl.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: October 22, 2012 02:45PM

Oh hang on.

Do you mean you are trying to access phpMyAdmin etc from another PC i.e. not the one running WampServer?


If so the alias's are setup to only allow access from localhost ( dont normally want external users messing with your database and so on ). Its a wamp security mechanism.

Their access is controlled from another file.

See c:\wamp\alias\phpMyAdmin.conf for example

there is a seperate conf file for each tool.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: stevenmartin99 (Moderator)
Date: October 22, 2012 03:18PM

There is actually two errors in the current wamp.

If you open the two conf files that are causing issues

You will actually see the second file path is a malformed copy of the phpmyadmin path.

You need to correct this is the alias files so they match the first path in each file

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 06:48PM

I've been editing the files directly with notepad++, and then restarting all services. I've not used the context menus of the systray icon as they don't support opening files for edit in the system's default editor. It sounds like this should avoid the latter bug.

However, no I'm not trying to access phpmyadmin. Just ignore my last post if it's confusing. I was trying to make a point that probably doesn't even matter.

I have two problems:

1) I'm trying to access sqlbuddy and webgrind. Neither of them work with a fresh install, default config.

2) I'm unable to access any custom aliases I make remotely, only locally. I know I've set the .conf for the alias up correctly for remote access unless I need more than:

Alias /webalias "local/file/path"

<Directory "Directory/goes/here">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Require all granted
</Directory>



Edited 5 time(s). Last edit at 10/22/2012 06:55PM by Drexl.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: stevenmartin99 (Moderator)
Date: October 22, 2012 07:20PM

Can u get Teamviewer and ill take a look

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 08:26PM

I have it.



Edited 1 time(s). Last edit at 10/22/2012 08:33PM by Drexl.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: stevenmartin99 (Moderator)
Date: October 22, 2012 08:38PM

ok send me login details and ill sort it in a few mins

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 08:44PM

Sent via PM.

Options: ReplyQuote
Re: Aliases broken. Conf files are correct I swear!
Posted by: Drexl (---.tukw.qwest.net)
Date: October 22, 2012 09:11PM

Problem solved. Tyvm for the support! ^_^

Options: ReplyQuote


Sorry, only registered users may post in this forum.