You are not logged in.
Hi
I just installed apache following the wiki. Everything works fine except ~/public_html. When i try to access it i get 404.
I didnt alter any conf files, just chmod public_html dir.
home/lab
drwxr-xr-x 1 lab lab 20 Ιούλ 4 22:15 public_htmlpublic_html/:
-rw-r--r-x 1 lab lab 52 Ιούλ 4 22:15 index.html
local ip - - [05/Jul/2017:12:16:02 +0300] "GET / HTTP/1.1" 200 481
local ip - - [05/Jul/2017:12:16:02 +0300] "GET /favicon.ico HTTP/1.1" 404 976
local ip - - [05/Jul/2017:12:16:02 +0300] "GET /favicon.ico HTTP/1.1" 404 976
local ip - - [05/Jul/2017:12:16:08 +0300] "GET /lab HTTP/1.1" 404 976
local ip - - [05/Jul/2017:12:18:34 +0300] "GET / HTTP/1.1" 200 481
local ip - - [05/Jul/2017:12:19:02 +0300] "GET /lab HTTP/1.1" 404 976
Any ideas? I'm kinda stuck.. Thanks guyz
Last edited by Zapman (2017-07-05 16:29:17)
Offline
What URL are you using to access the home site in the browser?
Matt
"It is very difficult to educate the educated."
Offline
"server's lan ip"/lab <-- lab is the users home dir
Last edited by Zapman (2017-07-05 15:41:28)
Offline
You're missing the tilde. Try http://ip:ad:re:ss/~lab
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
To expand on the above, what that url is attempting to access (assuming default settings as you've indicated) would be a file at /srv/http/lab or /srv/http/lab/index.html. No such file or directory exists, so you get a 404. The tilde at the start of the resource name indicates that it is in /home/*/public_html where the * is filled in by what is after the tilde:
http://domain.tld/lab/index.html -> /srv/http/lab/index.html
http://domain.tld/~lab/index.html -> /home/lab/public_html/index.html
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Oh gosh! thats why i was stuck hhahhhah. I really couldn't see it.. Thank you all guyz!
Offline