*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

How can the www directory be made?

Webserver service.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
David Seo
NewUser
NewUser
Posts: 1
Joined: 10 Sep 2012 04:19
Status: Offline

How can the www directory be made?

#1

Post by David Seo » 10 Sep 2012 04:33

I am a newbie nas4free and I have not knowledges about linux commands.

How can I make the 'www' home directory to service webserver page in nas4free?

I tried to make the 'web' directory in Advanced>File Manager option.
But I can't search it in Document root field when Services>Webserver setting.

How can I do it or can make it? ;)

I want to hear you guide about it.

-David.
Platform OS FreeBSD 9.0-RELEASE-p4 (revision 199506)
Platform x64-full on Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
System FOXCONN G41MXP/G41MXP-V Bios: 080015 04/08/2011

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: How can the www directory be made?

#2

Post by alexey123 » 10 Sep 2012 08:42

When you connect your storage disks, your named it.
Folder with content disk place into /mnt folder. For example - your named your disk as DISK. You can observe it as /mnt/DISK.
Create with manager into /mnt/DISK folder www with 777 permissions. Path /mnt/DISK/www.
If your plan use webserver on 80 port, you need replace webgui port on difference from 80, such 10080. NAS4free ask reboot, and give him reboot.
After reboot you can access to NAS4FREE webgui on

Code: Select all

http://yournasadress:10080
After this step open sevices webserver.
Define document root as /mnt/DISK/www port as 80
Place into www folder file index.html with content

Code: Select all

<html>
<body>
<center><H1>It work</H1></center>
</body>
</html>
Save and restart
Open with browser

Code: Select all

http://yournasadress
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4924
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: How can the www directory be made?

#3

Post by raulfg3 » 10 Sep 2012 08:43

I create mine on /mnt/mypool/web and use this path to point Webserver service -> Document root.

PD: I need to change group:user to "www" to have rights to use it.

http://www.manpages.info/freebsd/chown.2.html

To create folder, you can use embeded Advanced file manager, use root:nas4free as user:password
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

chachi420
Starter
Starter
Posts: 74
Joined: 26 May 2014 22:35
Status: Offline

Re: How can the www directory be made?

#4

Post by chachi420 » 24 Apr 2018 01:04

sudo visudo
www-data ALL=(ALL) NOPASSWD: ALL

These two things were needed to do something on apache to get it all working. I forgot exactly where you add them but you add these lines to one of the files and it'll work. IF i understood your problem correctly.

Post Reply

Return to “WebServer”