Jump to content

More Apache problems


Guest timid1
 Share

Recommended Posts

Guest timid1

Hi guys,

 

I reported earlier that I was having problems getting Apache to listen to a port other than 80. That problem, thanks to SwiftDeath, has been fixed. Apache now successfully listens to the port I've set. I can access the index page stored in /var/www/html internally and externally without any problems. My problem is that I can't access any sub-directories. I've created a sub-directory, called images under /var/www/html and have placed pictures in that directory. I believe I have the appropriate permissions set for the directory in that the directory is set to 755, as well as all the contents of the directory.

 

BTW /server-info also acts in the same manner. I get an access forbidden message from the browser.

 

I believe that the problem may lie either within commonhttpd.conf or within Vhosts.conf, but I don't know where to start. I hope I've given enough information for you all to help. Any assistance that you can provide would be appreciated very much.

Link to comment
Share on other sites

Guest timid1

Just adding an update to this to let you all know that I figured it out on my own. In httpd2.conf, the ServerName line was commented out. Turns out that I had to uncomment it and restart the Apache service. When I restarted it, I was being redirected to some weird site, http://localhost.be (or something like that). In any case, I went back to the httpd2.conf and changed the ServerName localhost line to ServerName 192.168.1.103; now no more problems. I can view all sub-directories without problems.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...