MitS Posted September 15, 2008 Report Share Posted September 15, 2008 Witam serdecznie, chciałem się was zapytać czy da rade użyć innej lokalnej domeny niż http://localhost/ (127.0.0.1) bez konieczności posiadania dostępu do neta np. http://cooos.ja/ ? moje drugie pytanie to czy do domeny lokalnej localhost da rade zrobić subdomenę na poziomie przeglądarki (mod-rewrite ?) np. http://sub.localhost/ ? Jeżeli tak jak to uczynic ? Pozdrawiam Link to comment Share on other sites More sharing options...
eth0 Posted September 16, 2008 Report Share Posted September 16, 2008 Ja bym tą domene i subdomene zrobił w pliku /etc/hosts, i /etc/httpd/conf/httpd.conf Myślę że w ten sposób najłatwiej. Link to comment Share on other sites More sharing options...
MitS Posted September 16, 2008 Author Report Share Posted September 16, 2008 ok teraz pytanie jak to poprawnie uczynić by działało. Przypomnę, że chodzi mi o działanie lokalnej domeny zarówno: http://xx.localhost.pl/ , http://www.localhost.pl/ oraz http://localhost.pl/ w vhostach w httpd.conf sobie umiem dodac, ale pytanie brzmi jak poprawnie zrobić to w pliku /etc/hosts ? mój plik wygląda tak: 1 # Do not remove the following line, or various programs 2 # that require network functionality will fail. 3 #127.0.0.1 localhost.localdomain localhost 4 127.0.0.1 ozyrys localhost.localdomain localhost 5 ::1 localhost6.localdomain6 localhost6 6 192.168.1.100 ozyrys ozyrys 7 192.168.0.1 dlink dlink Link to comment Share on other sites More sharing options...
@WalDo Posted September 16, 2008 Report Share Posted September 16, 2008 ale pytanie brzmi jak poprawnie zrobić to w pliku /etc/hosts ?A tak standardowo:127.0.0.1 ozyrys localhost.localdomain localhost localhost.pl www.localhos.pl localhost.com cooos.ja to nie działa? Link to comment Share on other sites More sharing options...
MitS Posted September 18, 2008 Author Report Share Posted September 18, 2008 ha działa ! Dzięki za pomoc Pozdrawiam Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now