LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache and directories (https://www.linuxquestions.org/questions/linux-newbie-8/apache-and-directories-397972/)

Pwnious 12-30-2005 04:48 PM

Apache and directories
 
Can you tell me how to make a directory using apache.
For instance www dot mainpage dot com is the website with the index at /var/www/html
and I want a www dot mainpage dot com slash folder. That is a folder, I am guessing, so where do I put that folder at?
The dis. I am using is MAndriva 2005 LE

comprookie2000 12-30-2005 04:57 PM

You have directorys then files inside that so
mkdir /var/www/html/newdir
you will have a new directory named newdir
is that what you wanted?

Pwnious 12-30-2005 05:07 PM

I tried that before i posted, it didn't work. I wanted the directory to be able to be accessed from any computer using apache. Like my website blackdragon dot game-host dot org (replace dots with . and no spaces) when i type in the address with /folder1 on a browser, it goes to a random search engine.

comprookie2000 12-30-2005 05:20 PM

Find;
<Directory />
Options Multiviews Indexes Includes FollowSymlinks
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</Ifmodule>
</Directory>
Not sure which file on mandrake, this will open up the directorys if it says;
Deny from all
Is that what you wanted? I don't understand this part;
Quote:

I wanted the directory to be able to be accessed from any computer using apache.

pljvaldez 12-30-2005 05:27 PM

You may have made the directory in the wrong place. In Debian at least, for your main site you would want to mkdir /var/www/newdir or for individuals mkdir /home/user/public_html/newdir.

To access the first one you would put www.mysite.com/newdir in Firefox. For the 2nd one, it would be www.mysite.com/~user/newdir.

Also, this may be a DNS problem where the browser doesn't know what ip address is associated with www.mysite.com. Can you access your mainpage with the browser?

Pwnious 12-30-2005 05:28 PM

Like this website, if you look on the address bar it has the website + /questions.
I was just wondering how to get others to see the webpage from that directory.

Pwnious 12-30-2005 05:29 PM

nevermind, i just figured it out.

pljvaldez 12-30-2005 06:26 PM

Just out of curiosity, what was the issue?

Mara 12-31-2005 11:00 AM

Thread title changed.


All times are GMT -5. The time now is 11:54 AM.