Make sure that your image src link is your domain name for instance src=""īe sure to have EnableSendfile off in nf file I just spent several hours on this stupid problemįirst, change permissions using this in terminal find htdocs -type f -exec chmod 664 + Sudo chmod o+w /opt/lampp/manager-linux-圆4.run Note : Adjust path how you want to your app folderĮx: DocumentRoot "/home/USER/Desktop/My_Project"īut this should be tested, comment if this work. Open a console and paste this command for open a I insert this : (but not sure to 100% if this good) 127.0.0.1 votemo.test Go to : /etc/ folder find hosts file ( /etc/hosts ) : Don't forget to comment the previous exemple ServerAlias ErrorLog "logs/votemo.test-error_log"ĬustomLog "logs/votemo.test-access_log" common This works on Linux Fedora for VirtualHost : ( Lampp/Xampp ) Since many functions of this site are sitename-sensitive, I have to be able to access the site by the domain name.Īnother funky thing is, even if all log files are created properly, they have no information regarding this error. I changed the hosts file on my desktop to point to the server's IP. If I type in the IP address from my desktop, the site shows up correctly. The permissions are set correctly (readable by www-data). # This should be changed to whatever you set DocumentRoot to. rwxr-xr-x 1 root root 177 16:10 index.htmlĬontent of the host file on the server (with IP 192.168.2.5) cat /etc/hostsġ92.168.2.5 # The following lines are desirable for IPv6 capable hostsĮrrorLog /var/log/apache2/mytest-error_logĬustomLog /var/log/apache2/mytest-access_log combined The following are my settings:ĭrwxr-xr-x 2 root root 4096 11:26 The site must run under domain I always get a 403 Forbidden error. This is a clean install, and I've done very little with the installation that I haven't noted here.I recently tried to set a test server up with Apache. This is a very common setup, and none of the many, many guides I've read indicate needing to change Apache's access permissions or the OS filesystem permissions. To nf, but it didn't change the 403 Forbidden error after restarting Apache. Indicating that Apache is disallowing access to Tomcat's /tomcat/webapps/ROOT/ directory because of a permissions conflict. Apache's error log gives AH01630: client denied by server configuration: proxy:ajp://localhost:8009/favicon.ico If I connect to Tomcat directly with localhost:8080, the connection is fine and I get index.jsp. Given the Apache configuration, this should be every request Apache receives.Īccessing localhost returns a 403 Forbidden error. Which, according to my understanding, tells Tomcat to listen on port 8009 for anything being sent via AJP. In Tomcat's /etc/tomcat/server.xml, I have Mod_proxy and mod_proxy_ajp are enabled with configuration ProxyRequests OffĪccording to my understanding, this tells Apache to relay all requests to whatever is listening on local port 8009 via AJP, allowing only requests from localhost and keeping everything relative to the respective root directories. It includes the proxy configuration file /nf. In Apache's nf I've set ServerName localhost. I'm attempting a very simple setup: A single instance of Apache will proxy all traffic for a single instance of Tomcat. I have a fresh install of Fedora 23 (Workstation) with fresh installs of Apache 2.4 and Tomcat 8.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |