Sub pages and directories - html

I want to create a sub directory within my public_html for organizational purposes. I created a folder called news and I placed a file called index.html but when I visit /news/ I get a forbidden error
You don't have permission to access /news/.html on this server.
If you navigate to /new/index it brings the page up. Since it appears to be looking for news/.html I tried renaming the file .html but still had no luck.
When I check the logs this is the error I get
AH01630: client denied by server configuration

Related

While using nodejs, How can I access files outside root directory?

I'm making a nodejs page to show as an management page.
I need to access a directory outside root directory.
But I can't access with relative path.
Directory example is like this.
C:\resultDirectory\projectA
C:\resultDirectory\projectB
C:\reportDirectory\ProjectA
C:\reportDirectory\ProjectC
C:\NodejsRootDIrectory
What I want to do for now is Access a file in subdirectory of "C:\resultDirectory\projectA". But at the end, I need to access them all. So I can't make webpage root to project A's directory.
What I've dont to access was relative path. sample is
$('#report').load("../../../ProjectA/Daily/DailyReport_191001_151843.html");
I've checked number of "../" and tried add and subtract several times.
For now, this is only code relative to access files.
$('#report').load("../../../ProjectA/Daily/DailyReport_191001.html");
When I check chrome's error, there is only 404 error. the browser can't find out the file I want to see.

XenForo - How can I make a directory visible to visitors?

I have a XenForo board and I want to put some files on the system, for everyone to see. So I created a directory and uploaded files. When I am trying to access it though I am getting a 403 error Forbidden error in the browser. How can I fix that?
Htaccess file and check if there is an access restriction for the folder where the files are located.

an error occurred while processing this directive in justhost

when i upload my website to my hosting Justhost it not working and it show only error like this
an error occurred while processing this directive
Please help me to correct this error
try the steps that follow:
Go to cPanel
Open File Manager from Files section
Navigate to domain folder
Check "Perms" column on far right hand side
Files should be set to: 0644 (this is the UNIX file permissions)
Folders should be set to: 0755
This will change your file permissions to their proper settings for the justhost file system. Additionally, if you have PHP code within.htm or .html files, you will need to add an additional Apache handler to tell justhost to parse these files as PHP. Do this using Apache Handlers in cPanel:

Cannot Access Web Page on Apache 2.2 Server

I've made a simple web page for one of my classes, and uploaded it to an Apache server on campus, from which I'm to view and take a screenshot of.
Before trying to view the page I created a sub-directory on the server to put my HTML file. Once the upload was complete, I changed the permissions on the file to -rwx---r-x and on the sub-directory folder to drwx---r-x.
However, I'm not able to view the page. I keep getting a message saying 403: Forbidden. You do not have sufficient privileges to view this site on this server.
Is there anything else that I need to do to the file and/or folder to be able to view the web page?
Who is the owner and the group of the file?
You probably need to change the file permissions to -rwxr--r-- and directory to drwxr-xr-x

Plesk - Error adding subdomain "The specified directory contains a service directory"

I'm trying to create a subdomain and point it to etc/subdomains/home
Folder home only contains an index file.`
When I click ok I get this message: "The specified directory contains a service directory"
I tried with`etc/subdomains/home and etc/subdomains/home/index.php but I still get the error message.
What am I doing wrong?
I think etc folder is reserved for configs and other staff, not sure what the one would want web scripts in there. Try choosing any other folder like subdomain/home, htdocs/subdomain/home, subdomains/mysubdomain/home, etc.