Not letting me have permission seeing websites
Posted by: redarrow (---.ip-158-69-237.net)
Date: January 29, 2016 06:01AM

Hi there i got my code correct i think have a look.

<VirtualHost *:80>
DocumentRoot "C:/wam/www/discountproduct"
ServerName www.mywebsite.co.uk

# Other directives here

<Directory "c:/wma/www/discountproduct">
Options Indexes FollowSymLinks MultiViews Includes ExecCGI
AllowOverride All
Order Allow,Deny
Allow from all
Require all granted
</Directory>

</VirtualHost>


the problem is i got permission problem from out side computer i can see it works on the testing computer but no access from out side please help.

apache 2.4 .17version..
windows 2012 r2 standerd
mysql



Edited 1 time(s). Last edit at 01/29/2016 06:26AM by redarrow.

Options: ReplyQuote
Re: Not letting me have permission seeing websites
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 29, 2016 11:49AM

You have mixed Apache 2.2 and Apache 2.4 syntax in here, so remove the

Order Allow,Deny
Allow from all


Also there are some typo's as well in the folder names
So like this

<VirtualHost *:80>
   DocumentRoot "C:/wamp/www/discountproduct"
   ServerName mywebsite.co.uk
   ServerAlias www.mywebsite.co.uk

   # Other directives here

   <Directory "c:/wamp/www/discountproduct">
      Options Indexes FollowSymLinks MultiViews Includes ExecCGI
      AllowOverride All
      Require all granted
   </Directory>
</VirtualHost>

Now to access this you would have to actually own www.mywebsite.co.uk and have amended the DNS to point to your Routers WAN ip address

You would also have to have port forwarded your router so that access to it on port 80 will be forwarded to the internal ip of the PC running WAMPServer

Your PC running WAMPServer should also be amended to be a static ip address, otherwise a reboot can change the PC's ip address and things stop working

---------------------------------------------------------------------------------------------
(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


Sorry, only registered users may post in this forum.