Been trying to get virtual hosts setup working without success, this is for local testing only and not connecting over the internet
I've created 4 virtual hosts so far as follows.
1. test.site1
2. test.site2
3. test.site3
4. test.site4
Going to any of those URL's goes to a page cannot be reached error, also tried test.site4:80 & test.site:3306 without success.
This is the SQL setup
The virtual hosts are set to use port 80, tried changing the port to 3306 but it won't let me save it.
Any suggestions.
Virtual hosts setup
-
- Starting out
- Posts: 27
- Joined: Sat May 07, 2016 3:04 am
Virtual hosts setup
You do not have the required permissions to view the files attached to this post.
-
- Starting out
- Posts: 20
- Joined: Wed Jun 02, 2010 2:55 pm
- Location: Nuremberg, Germany
Re: Virtual hosts setup
The SQL Setup has nothing to do with the VirtualHost setup.
Have you also made some DNS records for your test sites? If not, it is clear, why you can't access the virtual hosts with those URLs. The browser tries to get the IP adress from the name and he will not find any. So, the site cannot be reached.
For testing you can add some entries for your sites to your hosts file on your local PC. Those entries should point to the local IP address of your QNAP.
Cheers,
Zap
Have you also made some DNS records for your test sites? If not, it is clear, why you can't access the virtual hosts with those URLs. The browser tries to get the IP adress from the name and he will not find any. So, the site cannot be reached.
For testing you can add some entries for your sites to your hosts file on your local PC. Those entries should point to the local IP address of your QNAP.
Cheers,
Zap
Systems: QNAP TS 453 Pro & QNAP TS 219P
Programming is like s*e*x, one mistake and you have to support it for the rest of your life... (Mike Sinz, Commodore Amiga Developer)
Programming is like s*e*x, one mistake and you have to support it for the rest of your life... (Mike Sinz, Commodore Amiga Developer)
-
- Starting out
- Posts: 27
- Joined: Sat May 07, 2016 3:04 am
Re: Virtual hosts setup
Thanks, forgot about the hosts file.