Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Okay, I have used XAMPP and Apache on Windows before, but I have never tried it on Ubuntu... On top of that, I am using Ubuntu Server with 12.04 with CLI, no desktop environment or GUI.

I believe using X11 or a GUI opens up various other vulnerabilities and exploits, and I am working on a little project with the server- I want to make it public, not just a local server...

Back to the main problem- I have no idea where the directories are on LAMP on Ubuntu v12.04. I searched but can not find myself.

Additionally, does anyone have an idea where it is for Lighttpd? This is just a bonus question, I am more worried about the LAMP directories, but I may experiment with lighttpd instead later down the line.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

I think you can find that and more in the directory /etc/apache2/sites-available/, usually in the file default unless it's been renamed somewhere or you have more than one site.

This file should have an entry something like

<VirtualHost *:80>
    DocumentRoot /var/www
    ...

In the above case, the DocumentRoot corresponds to the the web root directory.

In this file, you can create any number of virtual hosts for various sites you might want to define.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.