dsp77 Posted September 8, 2011 Share Posted September 8, 2011 i have a centos server and i want to access http://199.58.44.xxx/folder/ the /folder/ exists on the server but when i access it i get 404 error. i think i need 2 play with httpd conf how can i make it accessible? Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/ Share on other sites More sharing options...
trq Posted September 8, 2011 Share Posted September 8, 2011 Assuming you want to list the directories contents you'll need to make sure you have... Options +Indexes set for either that specific location or for the entire vhost. Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/#findComment-1266753 Share on other sites More sharing options...
dsp77 Posted September 8, 2011 Author Share Posted September 8, 2011 i have an wordpress install on that folder. the thing is that the page is not found and i get 404 error Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/#findComment-1266759 Share on other sites More sharing options...
trq Posted September 8, 2011 Share Posted September 8, 2011 That is entirely different matter all together. It's likely you need to configure Wordpress to run from a subdirectory or something similar. Not really an Apache issue. Can you login to the Wordpress admin area? Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/#findComment-1266761 Share on other sites More sharing options...
dsp77 Posted September 8, 2011 Author Share Posted September 8, 2011 i deleted the content of the folder and added a index.html file with hello h1, after accessing the link http://199.58.44.xxx/folder/index.html i get Not Found The requested URL /competenteincomunicare.ro/ was not found on this server. i think i need to make some changes in httpd.conf Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/#findComment-1266778 Share on other sites More sharing options...
trq Posted September 8, 2011 Share Posted September 8, 2011 In general, you shouldn't need to make any changes to your configuration to simply serve files from a directory. Where exectly on the filesystem does this directory reside? And what is your servers configured document root? Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/#findComment-1266819 Share on other sites More sharing options...
dsp77 Posted September 8, 2011 Author Share Posted September 8, 2011 the folder resides in /var/www/html and DocumentRoot "/var/www/html" taken from httpd.conf Quote Link to comment https://forums.phpfreaks.com/topic/246694-problem-accesing-folder-on-server/#findComment-1266824 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.