Ubuntu Server - Apache2 Virtual Hosts in Intranet
Alexius Dionysius Diakogiannis
alexius.dionysius at diakogiannis.com
Tue Jul 26 14:40:25 UTC 2011
I agree αλλιώς θέλει 1-1 αλλαγή. Στα windows είναι c;\windows/system32/etc/drivers/hosts η κάπως έτσι :p
Sent From iPhone
Think Before You Print This Email
26 Ιουλ 2011, 17:12, ο/η "Sergey Tsabolov (aka linuxman)" <sergios at greeklug.gr> έγραψε:
> Στις 26/07/2011 04:45 μμ, ο/η Panagiotis Theodoropoulos έγραψε:
>>
>> *Οχι*.
>> Στο intranet χρειάζεται οι ρυθμίσεις και στο host του κάθε client που θα
>> βλέπει τα Virual Hosts?
>> host file = /etc/hosts ?
>> Στα Windows?
> Μήπως καλύτερα να βάλεις ένα τοπικό DNS όπου θα περάσεις αυτά τα Virtual Hosts και τέλος .
> Θα είναι τότε ποιο εύκολα να κάνεις τις ρυθμίσεις για νέα αργότερα.
>> 2011/7/26 Alexius Dionysius Diakogiannis <alexius.dionysius at diakogiannis.com
>>>
>>
>>> Στο pc που πας να τα δεις Έχεις κάνει αντίστοιχες ρυθμίσεις στο host file?
>>>
>>> Sent From iPhone
>>>
>>> Alexius Dionysius Diakogiannis
>>>
>>>
>>> Think Before You Print This Email
>>>
>>> 26 Ιουλ 2011, 15:51, ο/η Panagiotis Theodoropoulos <tpanagiotis at gmail.com>
>>> έγραψε:
>>>
>>>> Σε Ubuntu Server που τρέχει σε Intranet δίκτυο και έχει την static ip
>>>> 10.11.21.198 θέλω στον Apache2 να δημιουργήσω Virual Hosts.
>>>> Διάβασα πάρα πολλά σχετικά με το θέμα και το πρόβλημά μου είναι ότι ενώ
>>> τα
>>>> δημιουργώ σύμφωνα με τις οδηγίες και τα βλέπω (browser) από τον ίδιο τον
>>>> server δεν μπορώ να τα δώ από κανένα client του δικτύου.
>>>> Μήπως δεν υπάρχει αυτή η δυνατότητα?
>>>> Χρειάζεται να κάνω κάποιες επιπλέον ρυθμίσεις?
>>>>
>>>> ----- Οι βασικές ρυθμίσεις που έκανα----
>>>>
>>>>
>>>> 1. *cd /etc/apache2/sites-available*
>>>> 2. *sudo vim **myvirtualhost.local <http://yourdomain.com/>**.conf*
>>> and
>>>> enter VirtualHost directive.
>>>> <VirtualHost *:80>
>>>> ServerName myvirtualhost.local <http://yourdomain.com/>
>>>> DocumentRoot /var/www/myvirtualhost
>>>> </VirtualHost>
>>>> Save & exit.
>>>> 3. *sudo vim /etc/hosts* and add new domain so it looks like this:
>>>> 4. *127.0.0.1 localhost
>>>> 10.11.21.198 myvirtualhost.local <http://yourdomain.com/>*
>>>>
>>>> Save & exit.
>>>> 5. Enable your new virtualhost:
>>>> *sudo a2ensite myvirtualhost.local <http://yourdomain.com/>.conf*
>>>> 6. Reload the Apache configuration:
>>>> sudo /etc/init.d/apache2 reload
>>>>
>>>>
>>>>
>>>> --
>>>> Παναγιώτης Θεοδωρόπουλος
>>>> Panagiotis Theodoropoulos
>>>> <tpanagiotis at gmail.com>
>>>> -------------- next part --------------
>>>> An HTML attachment was scrubbed...
>>>> URL: <
>>> https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20110726/4b6698a0/attachment.html
>>>> --
>>>> Ubuntu-gr mailing list
>>>> Ubuntu-gr at lists.ubuntu.com
>>>>
>>>> If you do not want to receive any more messages from the ubuntu-gr
>>> mailing list, please follow this link and choose unsubscribe:
>>>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-gr
>>>
>>
>>
>
> --
> ---------------------------------------------------------------
> Don't send me documents in .doc , .docx, .xls, .ppt , .pptx .
> Send it with ODF format : .odt , .odp , .ods or .pdf .
> Try to use Open Document Format : http://el.libreoffice.org
> Save you money and use GNU/Linux Distro http://distrowatch.com/
> --------------------------------------------------------------
> First they ignore you, then they ridicule you, then they fight you,then you win!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-gr/attachments/20110726/7ca1a858/attachment.html>
More information about the Ubuntu-gr
mailing list