[TUTORIAL] How to config your webserver first time

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
loknath_p
Starting out
Posts: 11
Joined: Fri May 26, 2017 7:01 pm

Re: [TUTORIAL] How to config your webserver first time

Postby loknath_p » Mon May 29, 2017 10:38 pm

Hello Guys,

Can anyone help me resolve this issue. Tried all changes in apache.conf and http-vhost.conf by adding virtual hosts. but still my domain resolves to Nas admin page.
when i try to see with //public IP/virtual folder/ i can see my pages but not with my domain url.

Thanks.

eldor
Starting out
Posts: 36
Joined: Sat Apr 15, 2017 8:19 pm

Re: [TUTORIAL] How to config your webserver first time

Postby eldor » Mon May 29, 2017 11:09 pm

Hi!

Have you also mentioned the port? For example:

Mywebsite.myqnapcloud.com:8081

Gesendet von meinem HUAWEI GRA-L09 mit Tapatalk

User avatar
schumaku
Guru
Posts: 42633
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: [TUTORIAL] How to config your webserver first time

Postby schumaku » Tue May 30, 2017 2:17 am

The Virtual Server requires the access using the domain name, exactly as configured along with the Virtual Server, ie. if want to reach your Web page as www.whatever.domain you must configure www.whatever.domain and point to the virtual folder.

If you don't want your primary Web Server (listening on the IP address) you have to edit the index.php to redirect to the www.whatever.domain:80, or create some custom code (in the Web share, either named index.php or index.htm) showing or doing whatever. Removing the existing index.php which does the redirection will not be permanent, the Web Server start-up will force an index.php again (unless it already exits, or an index.htm exists).

User avatar
Moogle Stiltzkin
Experience counts
Posts: 4827
Joined: Thu Dec 04, 2008 12:21 am
Location: Malaysia
Contact:

Re: [TUTORIAL] How to config your webserver first time

Postby Moogle Stiltzkin » Fri Jun 23, 2017 8:49 am

oyvindo wrote:Hi, the guidebook here is dated 2009! I think web design and technology has evolved considerably over the past 7 years - now with responsive design, mobile first, etc.
Does anyone know of an updated step-by-step based on a third party web server known to run well in Docker, and which has a real user friendly design app that requires little or no programming (interactive graphic element design), while still producing advanced HTML5, Java Script and Ajax code through a "compile" process?


yeah this thread seriously needs a revamp. the very first post ought to be reflective of a modern up to date guide. not an excessively long series of questionnaires by everyone trying to work things out without a single proper reference to work with. with a proper guide most of it would not need to be quized too often :mrgreen: at least

i gathered some examples of what the guide ought to look like. i'd do it but i'm not confident enough to advise fully on this subject, as i'm rather newbie at this :mrgreen:



the site covers mysql and phpmyadmin, but it leaves out other crucial stuff for setting up a site like your
https://www.tweaking4all.com/qnap/qnap- ... hpmyadmin/


covers only mysql database creation to then install wordpress
https://www.qnap.com/en/how-to/tutorial ... ess-part-i


how to setup a phpbb forum. essentially similar to wordpress. create a database then follow the steps which will require mysl database info
https://www.qnap.com/en/how-to/tutorial ... -php-mysql


if your going to open your qnap to the internet as a web server, you need to know how to properly secure it. i only found this article on the subject
https://www.qnap.com/en/how-to/faq/arti ... ore-secure



qnapcloud gives you an easy freedyns for qnap use, though i managed to get my website online using other freedyns without resorting to using myqnapcloud service before. but if people want to use it there's this guide
https://www.qnap.com/en/how-to/tutorial ... ud-service




a few useful links

[ QApache + PHP ] WebServer and more
viewtopic.php?f=320&t=110391

Wordpress. Yes there is a qpkg but i found that downloading then dumping into web root seemed to work just as well.
https://wordpress.org/download/

[ LetsEncrypt ] Free SSL/TLS Certificates
viewtopic.php?f=320&t=122747

ffmpeg binary static
viewtopic.php?f=320&t=127583

[ QNginx + PHP-FPM ] Web Server and more [embedded]
viewtopic.php?f=320&t=113790

if you want to buy a domain name i recommend namecheap :mrgreen:
https://www.namecheap.com


*notes: Yes app center does have some of these core apps like apache and nginx, but for preference i like relying on steph releases since they tend to be more up to date usually.



in the current web server setting for qnap, we now have an option to use either apache or nginx for webserver. so an updated guide needs to cover setting up for both options. apache relies on htaccess for security configurations.
NAS
[Main Server] QNAP TS-653A w. 4x HGST Deskstar NAS (HDN724040ALE640) EXT4 Raid5
[Backup] QNAP TS-659 Pro w. 5x 2TB Samsung EcoGreen F3 (HD203WI) EXT4 Raid5
[Backup] QNAP TS-509 Pro w. 4x 1TB Western Digital RE3 (WD1002FBYS) EXT4 Raid5
[Backup] QNAP TS-228
[Backup] QNAP TS-128 w. 1x 1TB Western Digital RE3 (WD1002FBYS)

Other Network Devices
Asus AC68U AC1900 Router (RT Merlin firmware)|30mbps download/10mbps upload FTTH Internet | Windows 10 Enterprise, Water Cooled PC with Intel i7 920 Ivy bridge desktop (1x 512gb Samsung 850 Pro SSD + 1x 4tb HGST Ultrastar 7K4000)


Guides and useful articles posted by me
[Review] Moogle's QNAP experience
[Megathread] Qnap Frequently asked questions V2, click to read here


Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”

Who is online

Users browsing this forum: No registered users and 3 guests